the board has been ordered and currently awaiting its arrival
few questions:
is it possible to have access to the CPU clock speed ?
i also read comments dating back to 2013
that OTG cannot be accessed ? has there been a work around so far ?
and finally the is it possible to use a 2 x 16 lcd screen like any microcontroller
or it only works with the LCD and touch-sensor skin ?
CPU clock speed, USB OTG
Re: CPU clock speed, USB OTG
You can use:nutshell wrote:the board has been ordered and currently awaiting its arrival
few questions:
is it possible to have access to the CPU clock speed ?
Code: Select all
>>> pyb.freq()[0]
168000000
I'm not sure about OTG.nutshell wrote: i also read comments dating back to 2013
that OTG cannot be accessed ? has there been a work around so far ?
There is some code over here: https://github.com/dhylands/python_lcd/tree/master/lcd (for GPIO and I2C variants). The I2C variant is for a particular I2C chip, but it should be fairly easy to adapt to other chips.nutshell wrote: and finally the is it possible to use a 2 x 16 lcd screen like any microcontroller
or it only works with the LCD and touch-sensor skin ?
See this thread: http://forum.micropython.org/viewtopic. ... &hilit=LCD
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: CPU clock speed, USB OTG
My multi threaded library includes support for HD4480 displays wired using a four wire data bus (rather than serial or I2C). If the thread support isn't needed it would be easy to adapt the code for the LCD driver.
https://github.com/peterhinch/Micropython-scheduler
Regards, Pete
https://github.com/peterhinch/Micropython-scheduler
Regards, Pete
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.