Тёмный

Modify I2C Pins on Raspberry Pi Pico in Arduino IDE 

ShotokuTech
Подписаться 11 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@evoprox1
@evoprox1 Год назад
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!
@ShotokuTech
@ShotokuTech Год назад
Interesting glimpse into I2C. I never pondered how far back some of this technology goes. Thanks!
@willwhite8531
@willwhite8531 Год назад
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();
@ShotokuTech
@ShotokuTech Год назад
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!
@JimmyFungus
@JimmyFungus 2 года назад
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.
@ShotokuTech
@ShotokuTech 2 года назад
Thanks JimmyFungus! Great analogy.
@VitalyBrusentsev
@VitalyBrusentsev 2 года назад
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).
@ShotokuTech
@ShotokuTech 2 года назад
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.
@arijitbanerjee9200
@arijitbanerjee9200 Год назад
It is very helpful, in fact this information is not easily available, this is also applicable for ESP32. Thanks a lot. Arijit
@ShotokuTech
@ShotokuTech Год назад
Oh I had not even thought about ESP32! Thanks.
@dpratte
@dpratte Год назад
Very nicely done. Very helpful. Thank you Sir!
@ShotokuTech
@ShotokuTech Год назад
Thanks!
@seanocansey5673
@seanocansey5673 11 месяцев назад
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?
@ShotokuTech
@ShotokuTech 11 месяцев назад
You pose an interesting question. I followed what worked in that moment. What will you do? This is our constant challenge. Best wishes.
@turinturambar1338
@turinturambar1338 7 месяцев назад
This saved me, thank you so much!!
@ShotokuTech
@ShotokuTech 7 месяцев назад
Good news! Thanks
@qzorn4440
@qzorn4440 Год назад
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.
@ShotokuTech
@ShotokuTech Год назад
I guess I would need an Orange Pi-5 to test that on. I am not sure if I will get one. Thanks.
@PhilippeSEGOVIA
@PhilippeSEGOVIA Год назад
Thanks for sharing information!
@ShotokuTech
@ShotokuTech Год назад
Sure! Thanks!
@_Khayyam_987_
@_Khayyam_987_ 2 года назад
Hello, Sir. I'm glad you helped me solve this problem. Thank you for this interesting video.
@ShotokuTech
@ShotokuTech 2 года назад
Great topic. I learned more than I wanted to. LOL. Thanks.
@beyondimagination3170
@beyondimagination3170 2 месяца назад
Sir how can we change in stm32f I need extra i2c port
@ShotokuTech
@ShotokuTech 2 месяца назад
Sorry I don't have stm32f to try it with. Thanks!
@_nLz_
@_nLz_ Год назад
Hey, just saw the video and was wondering if u cant change these pins in program-code like redefining them. anyone any idea?
@ShotokuTech
@ShotokuTech Год назад
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.
@Дядя_Саня_Никалаич
Cпасибо! Помогло! долго мучился, но ваше видео спасло меня :)
@ShotokuTech
@ShotokuTech Год назад
отличные новости друг
@cherikervns9265
@cherikervns9265 2 года назад
Good afternoon I'm a Haitian I have a little wifi ellpsis I forget the bite helps me find it please
@ShotokuTech
@ShotokuTech 2 года назад
Perhaps your carrier has a help line?
@cherikervns9265
@cherikervns9265 2 года назад
I don't remember the rope please how can you help me
@cherikervns9265
@cherikervns9265 2 года назад
Wifi calls ellipsis jetpack
@ShotokuTech
@ShotokuTech 2 года назад
@@cherikervns9265 Rope may be the wrong word? I do not understand the question.
@ShotokuTech
@ShotokuTech 2 года назад
@@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.
Далее
Pi Pico W with the Arduino IDE | Using WiFi
49:26
Просмотров 156 тыс.
These Are Too Smooth 😮‍💨
00:57
Просмотров 7 млн
Меня знают уже все соседи😅
00:34
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18
In-depth: Raspberry Pi Pico's PIO - programmable I/O!
17:19
How to Use Arduino IDE with Raspberry Pi Pico W
7:35
These Are Too Smooth 😮‍💨
00:57
Просмотров 7 млн