Hi Keil Users,
Good day.
I'm trying to read analog voltage from potentiometer and show the value in Keil. I tried to use adruino and it works.
Can anyone convert below arduino command to Keil? I'm using Nuvoton NUC131SD2AE and multi function shield.
Arduino Command:
#define Pot1 0 void setup() { Serial.begin(9600); } /* Main Program */ void loop() { Serial.print("P_reading: "); Serial.println(analogRead(Pot1)); /* Wait 0.5 seconds before reading again */ delay(500); }
Thank you.
github.com/.../main.c
So why not just use that, then?
Note that STM32 is now supported by Arduino: community.st.com/.../stm32-cores-enabled-in-arduino-ide
If you want to learn "traditional" C programming, start here: www2.keil.com/.../learn
http://www.keil.com/books/
http://www.keil.com/support/
ST have their own YouTube channel, with lots of STM32 learning material: www.youtube.com/.../UCjnmZw3h4XnpK3e5D2jvIGA
And learning site: www.st.com/.../stm32-education.html
See also: https://community.st.com/