Wednesday, May 20, 2015

successful reapeat

We successfully recreated the "blinky" that we made that first monday.

Here is the source code:

import pyb x1 = pyb.Pin("X1", pyb.Pin.IN, pyb.Pin.PULL_UP) while True: if x1.value() == 1: pyb.LED(1).on() else: pyb.LED(1).off()

Monday, May 11, 2015

I/O types

PWM
Pulse Width Modulation
ADC
Analog to Digital Conversion
C
C++ style file input/output, explained here
SPI
Serial Peripheral Interface