Commit be6cf7d
committed
ANAVI Knobs 3: Fix when running without a display
Handle runtime error if mini I2C OLED display has not been attached
to ANAVI Knobs 3. Fixes:
RuntimeError: No pull up found on SDA or SCL; check your wiring
Signed-off-by: Leon Anavi <leon@anavi.org>1 parent 6949753 commit be6cf7d
1 file changed
Lines changed: 11 additions & 8 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments