+ 2

Can any programming language be used to program a microcontroller?

Electronics coding

1st Feb 2018, 2:33 PM
Abayomi Dayo
Abayomi Dayo - avatar
4 Answers
+ 1
Depends on microcontroller of course. Arduino only support c++ but something more complex like raspberry pi you can use many different languages.
1st Feb 2018, 2:36 PM
Toni Isotalo
Toni Isotalo - avatar
+ 1
@Toni. how do you then communicate with the pins
1st Feb 2018, 2:41 PM
Abayomi Dayo
Abayomi Dayo - avatar
0
@Toni You can use other languages with the Raspberry Pi. But the question is would you want to? And the answer is no. You generally want to get as much performance as possible out of microcontrollers. So you use C/C++.
1st Feb 2018, 2:39 PM
Vlad Serbu
Vlad Serbu - avatar
0
@Abayomi By using each microcontroller's API. Arduino, for example, has functions like pinMode, digitalWrite, digitalRead etc.
1st Feb 2018, 2:44 PM
Vlad Serbu
Vlad Serbu - avatar