Ken wrote up the process on windows here
Here's how on Linux (works for Ubuntu 14).
Unplug blue jumper on pin7&8.
Plug USB cable into socket closest to ARM chip.
Use lsusb to find the device:
| With a passion for Brown forged in the rolling valleys of West Yorkshire, | |
| the synthesist aims, through a traditional practice formed over generations, | |
| passed down like corrugations in the material that forms the product of the practice. | |
| Recent site specific inter-dependant works include public performance based | |
| chemistry, and through research-led desire highlights technologies for the post-processed | |
| pulp-upcycling within compact markets. | |
| Engagements related with and entwined, duly perform a significant leaning of character. | |
| Based not only in a non-self-referential framework of time, importantly a pseudo-inauthentic |
| from turtle import * | |
| import turtle | |
| speed(0) | |
| ninja = turtle.Turtle() | |
| ninja.speed(0) | |
| for i in range(180): | |
| ninja.forward(100) |
| from turtle import * | |
| import turtle | |
| speed(0) | |
| ninja = turtle.Turtle() | |
| ninja.speed(0) | |
| for i in range(180): | |
| ninja.forward(100) |
| from turtle import * | |
| import turtle | |
| speed(0) | |
| ninja = turtle.Turtle() | |
| ninja.speed(0) | |
| for i in range(180): | |
| ninja.forward(100) |
| from turtle import * | |
| color('purple', 'black') | |
| begin_fill() | |
| while True: | |
| forward(200) | |
| left(170) | |
| if abs(pos()) < 1: | |
| break | |
| end_fill() | |
| penup () |
| from turtle import* | |
| turn = 0 | |
| speed (1000) | |
| while turn <72: | |
| pencolor ("Pink") | |
| pensize(10) | |
| forward(100) | |
| back(100) | |
| right(270) |
Ken wrote up the process on windows here
Here's how on Linux (works for Ubuntu 14).
Unplug blue jumper on pin7&8.
Plug USB cable into socket closest to ARM chip.
Use lsusb to find the device:
| samp = [1 ,1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1] | |
| state = 1 | |
| db0 = 0 | |
| db1 = 0 | |
| print("samp = button state 0 is pressed") | |
| print("delta = samp ^ state difference between sample and state") | |
| print("db0 = ~(db0) & delta first bit of 2 bit counter") | |
| print("db1 = (db1 ^ db0) & delta second bit of 2 bit counter") | |
| print("changes = ~(~delta | db0 | db1) if a change has happened") | |
| print("state = state ^ changes state of the debouncer") |
| import serial | |
| import re | |
| """ | |
| i2c data captured with sigrok-cli: | |
| sigrok-cli -C 0,1 -c "samplerate=500k:voltage_threshold=1.8-1.8:continuous=on" --driver=dreamsourcelab-dslogic --samples 10M -P i2c:sda=1:scl=0 -A i2c=address-write --protocol-decoder-samplenum > data.raw | |
| """ | |
| samplerate = 1.0/500e3 |