This file contains hidden or 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
#!/bin/bash | |
# Get full path from where the script was executed, full path is needed to run emulator succesfully | |
B2G_HOME=$(cd $(dirname $BASH_SOURCE); pwd) | |
. $B2G_HOME/load-config.sh | |
export DISPLAY=:0 | |
# Other steps to do: |
This file contains hidden or 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
$(info Executing GNUmakefile) | |
BOARD?=STM32F4DISC | |
$(info GNUmakefile: set BOARD to $(BOARD)) | |
include Makefile |
This file contains hidden or 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 grp | |
import os | |
import pwd | |
import stat | |
import sys | |
import time | |
SIX_MONTHS = 6 * 30 * 86400 |
This file contains hidden or 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
import os | |
import stat # Install stat.py from micropython-lib | |
import sys | |
import time | |
SIX_MONTHS = 6 * 30 * 86400 | |
MONTH_NAME = ('', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') | |
def ls(dir): | |
print('%s:' % dir) |
This file contains hidden or 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
% This code relies on the Arbotix class and the SerialLink class from the | |
% Robotics Toolbox, which can be found here: | |
% http://petercorke.com/Robotics_Toolbox.html | |
addpath(fullfile( fileparts(which('startup_rvc')), 'robot', 'interfaces')) | |
% This was using a direct USB to bioloid interface, so we run it at | |
% 1 Mbit/sec | |
arb = Arbotix('port', '/dev/ttyUSB0', 'baud', 1000000, 'nservos', 2); |
This file contains hidden or 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
$(info Executing GNUmakefile) | |
#BOARD = STM32F7DISC | |
BOARD = STM32F429DISC | |
#BOARD = PYBV10 | |
$(info BOARD = $(BOARD)) | |
DFU_UTIL = dfu-util -s :leave | |
USE_PYDFU = 1 |
This file contains hidden or 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
/* usbreset -- send a USB port reset to a USB device | |
* | |
* Compile using: gcc -o usbreset usbreset.c | |
* | |
* | |
* */ | |
OlderNewer