Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

CircuitPython Library Examples
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CircuitPython Library Examples

by brianodell on Sun Apr 19, 2020 9:37 am

CircuitPython.org's libraries have many many examples, but none of these examples indicates which boards it's for!! Is there any index of examples by board??

I have a Pygamer and was interested in programming it with CircuitPython but I don't know which examples I should bother looking at. I believe the Pygamer has a ST7735 controlling the LCD, but none of the ST7735 examples work on the Pygamer. (Also, the schematic for the pygamer doesn't indicate which IC is controlling the LCD.)

brianodell
 
Posts: 2
Joined: Sun Apr 19, 2020 9:28 am

Re: CircuitPython Library Examples

by dastels on Sun Apr 19, 2020 6:40 pm

CircuitPython is relatively high level and the runtime abstracts away many of the hardware specifics. In the case of the display, depending on what you are trying to accomplish, you might want to have a look at the displayio module (see https://learn.adafruit.com/circuitpython-display-support-using-displayio).

There is no index by board that I am aware of, but searching the learn guides for the board you are interested in may help.

Dave

dastels
 
Posts: 2838
Joined: Tue Oct 20, 2015 3:22 pm

Re: CircuitPython Library Examples

by brianodell on Sun Apr 19, 2020 7:58 pm

Thanks; the tutorial on displayio is exactly what I needed.

brianodell
 
Posts: 2
Joined: Sun Apr 19, 2020 9:28 am

Please be positive and constructive with your questions and comments.