[STM32GENERIC] F429i Discovery
ChrisMicro Tue Jun 20, 2017 9:55 am
There is also a demo but I don’t know how to compile it because it does not appear in the examples menu.
Has anybody an idea?
ChrisMicro Tue Jun 20, 2017 9:55 am
Has anybody an idea?
zmemw16 Wed Jul 12, 2017 4:15 pm
fpiSTM Wed Jul 12, 2017 5:04 pm
ChrisMicro Sat Sep 16, 2017 6:39 am
It reads the voltage from PA0 and displays it. PA0 is connected to the blue button of the board. I you press the button the displayed voltage changes to 3.3V.
I have tried other pins e.g. PA1 but there seems to be a driver problem. PA1 shows always ‘0’.
ChrisMicro Mon Sep 18, 2017 8:35 pm
Anny idea?:
#include <Wire.h>
#define SERIALINTERFACE Serial
void setup()
{
//Wire.begin();
Wire.stm32SetInstance(I2C3);
Wire.stm32SetSDA(PC9);
Wire.stm32SetSCL(PA8);
//enableDevices();
SERIALINTERFACE.begin(115200);
delay(5000);
SERIALINTERFACE.println("\nI2C Scanner");
}
void loop()
{
byte error, address;
int nDevices;
SERIALINTERFACE.println("Scanning...");
delay(2000);
nDevices = 0;
for (address = 1; address < 127; address++ )
{
// The i2c_scanner uses the return value of
// the Write.endTransmisstion to see if
// a device did acknowledge to the address.
Wire.beginTransmission(address);
Wire.write(0);
error = Wire.endTransmission();
if (error == 0)
{
SERIALINTERFACE.print("I2C device found at address 0x");
if (address < 16) SERIALINTERFACE.print("0");
SERIALINTERFACE.print(address, HEX);
SERIALINTERFACE.println(" !");
nDevices++;
}
else if (error == 4)
{
SERIALINTERFACE.print("no device found at address 0x");
if (address < 16) SERIALINTERFACE.print("0");
SERIALINTERFACE.println(address, HEX);
}
}
if (nDevices == 0)
{
SERIALINTERFACE.println("No I2C devices found\n");
SERIALINTERFACE.println("Did you configure the chip select for your device?\n");
}
else
SERIALINTERFACE.println("done\n");
delay(5000); // wait 5 seconds for next scan
}
TFTLCDCyg Mon Sep 18, 2017 9:33 pm
Is it possible to remap the full GPIO with STM32CubeMX in order to activated I2C2, I2C3, SDIO, SPI4, SPI5 or SPI6 for example?
danieleff Tue Sep 19, 2017 5:11 am
void setup() {
Wire.stm32SetInstance(I2C3);
Wire.stm32SetSDA(PC9);
Wire.stm32SetSCL(PA8);
DumbLibrary.begin(); // dumb library does not know that the chip has multiple I2C, and thinks there is only Wire. What a shame... READ THE LIBRARY DOCUMENTATION
// THE PREVIOUS LINE WILL CALL Wire.begin() !!!
}
ChrisMicro Tue Sep 19, 2017 12:30 pm
But thanks
Here I made the new TFT touch screen example
ChrisMicro Fri Jun 22, 2018 8:04 pm
I added also an oscilloscope example in the TFT folder.