This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import usb.core | |
dev = usb.core.find(idVendor=0x045e, idProduct=0x028e) | |
if dev is None: | |
raise ValueError('Device not found') | |
else: | |
dev.ctrl_transfer(0xc1, 0x01, 0x0100, 0x00, 0x14) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "No-ip client" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
umask 022 | |
expect fork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define F_CPU 20000000 | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <util/delay.h> | |
#include <stdio.h> | |
#include <math.h> | |
/* | |
----------------------- | |
Self-Balancing Unicycle |