I have a code for Arduino UNO that uses port manipulation. However, the code does not compile for STM32 Nucleo F103RB. The error says that the Ports are not defined.
What does a code like:
PORTB = (PORTB & B11111100) | ((d) & B00000011);
mean and how can I translate it to make it work with my ...
Search found 3 matches
- Wed Mar 23, 2022 5:38 am
- Forum: General discussion
- Topic: How to translate Port Manipulation code from Arduino to STM32?
- Replies: 2
- Views: 1677
- Wed Mar 23, 2022 5:35 am
- Forum: General discussion
- Topic: Can't read I2C on NucleoF103
- Replies: 2
- Views: 1844
Re: Can't read I2C on NucleoF103
this worked.
- Sun Dec 19, 2021 5:47 pm
- Forum: General discussion
- Topic: Can't read I2C on NucleoF103
- Replies: 2
- Views: 1844
Can't read I2C on NucleoF103
I'm a total beginner. Only got my device yesterday but I have a lot of experience with Arduino.
I'm using STM32duino since I'm already familiar with Arduino IDE.
I keep trying to read an I2C flow sensor on the STM32 but the board just won't recognize it.
Ran the default I2C scanner and it says ...
I'm using STM32duino since I'm already familiar with Arduino IDE.
I keep trying to read an I2C flow sensor on the STM32 but the board just won't recognize it.
Ran the default I2C scanner and it says ...