Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

        def send_byte(register, data):
    spi.transfer((register, data))
        


src/m/a/max7219-HEAD/src/transitions.py   max7219(Download)
import time
 
from max7219.led import send_byte
from max7219.font import cp437_FONT
 
        for col in range(8):
            data = (font[from_char][col] >> (8 - i) | font[to_char][col] << i) & 0xFF
            send_byte(col + 1, data)
 
def left_scroll(from_char, to_char, font = cp437_FONT):
                data = font[to_char][col + i - 8]
 
            send_byte(col + 1, data)
 
def simple(from_char, to_char, font = cp437_FONT):

src/m/a/max7219-HEAD/src/canvas.py   max7219(Download)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
from max7219.led import send_byte
from max7219.font import cp437_FONT
def render():
    for col in range(8):
        send_byte(col + 1, gfxbuf[col])
 
def set_on(x, y):