pikasTech / PikaPython

An ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies. It is ready to use out of the box without any configuration required and easy to extend with C. Similar project: MicroPython, JerryScript.
http://pikapython.com/
MIT License
1.47k stars 134 forks source link

ESP32 GPIO #274

Closed laldana73 closed 1 year ago

laldana73 commented 1 year ago

Thanks for your awesome pikascript. I am Testing with an esp32c3. pikascript is running... i have the pikascript shell, but i don't find how to turn on a GPIO pin. is this functionality already implemented? i am trying ... io1 = ESP32.GPIO() io1.setPin('5') here i have to put a string io1.setMode('out)

here trow an error [error] no match gpio port.

is GPIO implemented for ESP32? or do i have to implement the functionality?

Thanks Again. Great Project

laldana73 commented 1 year ago

I foud the answer. the io1.setPin instruction is waiting 'Px' where x is the pin that i want to set.

pikasTech commented 1 year ago

Further adaptations of esp32 are still in progress, including the network layer and Bluetooth. If there are no other problems, I will close this issue, and have a nice day!