Search found 2 matches
- Thu May 09, 2019 8:25 am
- Forum: Drivers for External Components
- Topic: Driver for MY9231/Sonoff B1?
- Replies: 2
- Views: 2225
Re: Driver for MY9231/Sonoff B1?
I tried to port some Arduino code, which worked befor #Port from Tasmota/Arduino Code from machine import Pin from utime import sleep_us as sleep clockPin = Pin(14, Pin.OUT) dataPin = Pin(12, Pin.OUT) chips = 2 #Two chips cascaded def dataPulse(times): for x in range(times): dataPin.value(1) dataPin...
- Wed May 08, 2019 5:57 pm
- Forum: Drivers for External Components
- Topic: Driver for MY9231/Sonoff B1?
- Replies: 2
- Views: 2225
Driver for MY9231/Sonoff B1?
Someone managed to write a driver for that bulb? There are two MY9231 in series, so i tried using SPI to write an bytearray, but neither software nor hardware SPI worked. Then i customized/used the MY9221 lib from mcauser, but that didn't work either. It might be some timing issue, i only got some r...