![]() ![]() The following was loaded onto the NodeMCU board. It is just the ATTin圜ore slave receiver example with unnecessary comments removed and code to set the LED based on whether it receives a non-zero byte in the I2C ("Wire") transaction: #include The yellow and white leads carrying I2C "Wire" data are doctored simply because they went out of frame.ĭon't take the "5V" on the ISP cable breakout too literally, that line is at 3.3V (from the NodeMCU 3.3V pin).ĪTTiny85 had the following code loaded onto it. The smaller inset images are just for showing a better angle there. I've drawn some lines on the lower part of the image where the camera angle is bad. According to the pin maps, the D1 mini's D1 and D2 pins are same as on the NodeMCU, that is GPIO5 an GPIO4 respectively. If I try it myself later I'll update this with more details. And DIP/SOIC pin 5 (PB0) for the SDA signal. ![]() On the ATTiny85 you'll be using DIP/SOIC pin 7 (PB2) for the SCL signal. I don't know that I've ever used this Wire library in ATTin圜ore my only memory of using I2C slave no an ATTiny85 was coding it directly myself, but I expect it works fine. Because the interface is the same, you may find that it doesn't matter which board from which you take the example. To be clear, you don't need to get them from github, they should be available in the File/Examples menu. To get started you should be able to use the ESP8266-Arduino Wire library's Master Writer example with ATTin圜ore Wire library's Slave Receiver example. ![]() The damellis package doesn't, so if you've been trying to use that one, I'd suggest switching to ATTin圜ore. ATTin圜ore seems to come with a Wire library implementation presenting the same interface as you find in other Arduino board packages. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |