Hello Circuit Python - adalessio84/circuitPython GitHub Wiki

Hello Circuit-Python (and Metro and Mu)

Objective

The objective of the assignment was to take the new tools we have acquired. The Metro Express is like an Arduino on steroids. While the Ardunio is a micro controller that takes words and turns them into 1s and 0s which means its slower and docent have the multi function ability of the Metro Express. The metro Express is a micro Computer! that can take direct commands for the highly variable and functional circuit python language. We where tasked with making lights fade in and out with our new tool.

Pictures

Lessons Learned

I learned how to take the Metro Express to cause an LED to fade in and out. This exercise was able to show the power of circuit python and the Metro Express. We learned how to use PWM to very the amount of current going to the LED. It We also Learned around PulseIO a Powerful new tool that allows to control a lot about the LED and set the pin

Code

led = pulseio.PWMOut(board.D13, frequency=5000, duty_cycle=0)    # sets up pin.

while True:
    for i in range(100):
        # PWM LED up and down
        if i < 50: