-
• #2
Another pic.
1 Attachment
-
• #3
...I see your cycle consuming
wait(n /*ms*/)
function invocations... did ou think of an alternatives?... because this is kind of blocking the JS thread completely when the 500ms interval'd code runs.I know, it is not easy to inverse a function... and make it with multiple entry/resume points... but it should be possible... May be for this case it is not worth the effort.
-
• #4
No, my first goal, was to prove to get it working on esp8266-01.
-
• #6
The code above has the wait for the setup part - there are no waits in the 500 interval?
-
• #7
Yes there are 1ms
-
• #8
The timings are OK, but you can't communicate with the device that is attached via I2C, right? Then you should check the circuit. Did you connect 4.7K pull-up resistors to both I2C lines?
-
• #9
Got a Wii Nunchuck
Could not not find a adapter to hook up that thing
How do you connect that little nice I2C device ?
-
• #10
I cut the wire, but there is:
https://www.adafruit.com/products/345
I have now tested my Wii Nunchuck on my Pico and esp8266, and now I have it running on both.
I had to set the freq to 80 on esp8266 and put in a few delay's.
1 Attachment