Search found 4 matches

by Frédéric Boulanger
Mon Jul 18, 2016 5:20 am
Forum: WiPy and CC3200 boards
Topic: Losing the REPL when an IRQ is triggered
Replies: 49
Views: 51539

Re: Losing the REPL when an IRQ is triggered

>>> import os
>>> os.uname()
(sysname='WiPy', nodename='WiPy', release='1.2.0', version='v1.8.2-12-gad9b9c7 on 2016-07-14', machine='WiPy with CC3200')
>>>
by Frédéric Boulanger
Thu Jul 14, 2016 4:41 pm
Forum: WiPy and CC3200 boards
Topic: Losing the REPL when an IRQ is triggered
Replies: 49
Views: 51539

Losing the REPL when an IRQ is triggered

I have a WiPy with an extension board with an LED on pin GP16 and a push button on pin GP17. I use the following code: from machine import Pin led=Pin('GP16', Pin.OUT) btn=Pin('GP17', Pin.IN, Pin.PULL_UP) def btnhandler(pin): global led led.toggle() btn.irq(trigger=Pin.IRQ_FALLING, handler=btnhandle...
by Frédéric Boulanger
Mon Jun 08, 2015 9:11 pm
Forum: Drivers for External Components
Topic: Anyone working on a MAX7219 8x8 LED matrix display library?
Replies: 43
Views: 137254

Re: Anyone working on a MAX7219 8x8 LED matrix display library?

I have written some code for a MAX7219 driven 8x8 LED matrix. You will find it on:

http://wwwdi.supelec.fr/fb/Archi2015/PyBoardMAX7219-8x8

The main text is in French, but the code is commented in English. It should give you the basic elements to create your own code with the 8x8 matrix.

Frédéric