I hereby claim:
- I am bnewbold on github.
- I am bnewbold (https://keybase.io/bnewbold) on keybase.
- I have a public key whose fingerprint is 3F46 8108 EE58 663C B95A E9DC 0C93 37BC EC39 32B9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
*** ./support/ld/libcs3_stm32_src/Makefile.bak 2012-01-18 11:06:14.346230175 -0500 | |
--- ./support/ld/libcs3_stm32_src/Makefile 2012-01-18 11:13:54.546105380 -0500 | |
*************** | |
*** 24,29 **** | |
--- 24,30 ---- | |
$(AR) $(ARFLAGS) libcs3_stm32_med_density.a $(LIB_OBJS) | |
rm -f $(LIB_OBJS) | |
+ high-density: ASFLAGS := -DSTM32_HIGH_DENSITY | |
high-density: CFLAGS := -DSTM32_HIGH_DENSITY |
class Pin { | |
uint8 pin; | |
public: | |
Pin(uint8 pin,WiringPinMode mode): | |
pin(pin){ | |
pinMode(pin,mode); | |
} | |
operator bool (void)const{ |
#define AIN1 18 | |
#define AIN2 19 | |
#define AOUT1 6 | |
#define AOUT2 7 | |
#define POT1 16 | |
#define POT2 17 | |
#define SAMPLETIME 10 // in microseconds | |
#define KNOBSAMPLETIME 21 | |
#define SYSTICK_CSR 0xE000E010 |
import time | |
import cPickle as pickle | |
import simplejson | |
import json | |
import cjson | |
a = { | |
'foo': 'bar', | |
'food': range(10), | |
'good': ['a', 2.45, True], |
#include "wirish.h" | |
#include "HardwareSerial.h" | |
#include "HardwareUsb.h" | |
#include "usb.h" | |
#define LED_PIN 13 | |
#define AIN_PIN 20 | |
#define CUTOFF1 3000 // 2/3.3 * 4096 | |
#define CUTOFF2 3350 // 2/3.3 * 4096 |
// Overclocking demo, written 05/19/2010 by bnewbold for leaflabs | |
// THIS COULD BRICK YOUR BOARD! OVERCLOCKING IS A HACK NOT A FEATURE! | |
// This code is in the public domain for all intents and purposes. | |
// Intended for use with libmaple on a Maple board. Concept from Thomas | |
// Jespersen: http://elec.tkjweb.dk/blog/2010/02/stm32-overclocking/ | |
#include "wirish.h" | |
#include "usb.h" | |
#include "rcc.h" |
/* | |
Interactive Hardware Test Session for Maple | |
Connect via Serial2 (header pins D0 and D1 on the Maple) and press | |
'h' for a list of options. | |
To use this in a sketch, remove all the #includes and the function prototypes. | |
Created 22 April 2010 | |
By Bryan Newbold for LeafLabs |