Thanks for the input, much appreciated and subbed. (The first time I've used I2C professionally was back in the late 90s; the whole mess coded from scratch in Assembler, lol.) Anyway, I'm glad I2C is still around and thriving with way more hard- and software to choose from. Keep it up!
Hi Your video helped me out it got me up and running Thank you for that. However I have since found out that you can set the pins for I2C in your sketch. If your board definitions update you could loose the pin definitions you set in hardware. In void setup before wire.begin set the pins with Wire.setSDA(12); and Wire.setSCL(13); or Wire.setSDA(0); and Wire.setSCL(1); If you want to use the other I2C port use Wire1.setSDA(2); and Wire1.setSCL(3); Which ever pins are most appropiate for you build. void setup() { Wire.setSDA(12); Wire.setSCL(13); Wire.begin(); or void setup() { Wire1.setSDA(2); Wire1.setSCL(3); Wire1.begin();
Yeah I found similar while making this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sBYHlvLupxw.html #include const int SCLpin = 42; const int SDApin = 41; void setup() { Wire.begin(SDApin, SCLpin); } Thanks!
This is great you are answering these technical questions free of charge. Imagine if lawyers gave out free legal advice like that, Amber Heard would not be $10 million in debt now.
Appreciate you sharing this. Not sure about Arduino IDE, but some IDEs, like PlatformIO in VSCode, have good C++ navigation features. So you can perform the Go To Definition command on "Wire.h" in your include statement, and it will open the file at the target location (and the tab will show the full path, when highlighted).
Thanks. I'm no expert. Just sharing my practical experience along the way. Best I can find is "Help/Find in Reference". This doesn't seem to do anything, not matter what I highlight concerning 'Wire' or 'wire.h'. But "Help/Reference" takes me to Arduino docs page. This is v1.8.x. Maybe v2.x.x does more. Basically, the include files do not load into the IDE when I open the sketch, so the IDE just refers to a hard coded path depending on how it was installed. I'll look at 2.x.x and the web IDE to see if it gets easier to find. Best wishes.
How do you do this without having to delve deep into the Arduino files? Is there a way to undefine and redefine the pins just in the code you write, so it will work in any computer?
Hello, a most interesting GPIO video. Do you have an Orange Pi-5 GPIO PWM video? I just want to make 2 servos Pan/Tilt to move using OPi.GPIO in Python3 or something that works. I cannot program the Channel, Pin, Duty cycle , Frequency without errors It is suppose to be a RPi.GPIO drop-in?? One PWM example would be a big help. Thank you.
They are defined in the include file that determines the pins. No code is going to get around that unless there is some supporting library developed that assigns pins a different way.
@@cherikervns9265 WiFi calling is more of a phone feature. This is just a WiFi hotspot. It is probably best to contact your cellular carrier for more support with this device.