Advertisement
silver2row

first bits of grove_oled.py

Aug 2nd, 2020
1,646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. from smbus2 import SMBus
  2. import time
  3. import math
  4.  
  5. Oled = SMBus(0x3c)
  6. bus = "/dev/i2c-2"
  7.  
  8. Command_Mode = 0x80
  9. Data_Mode = 0x40
  10.  
  11. grayH = 0xF0
  12. grayL = 0x0F
  13. Normal_Display_Cmd = 0xA4
  14.  
  15. BasicFont = [[0 for x in range(8)] for x in range(10)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement