From c37972e81501b0e8024b59e98b16c27a85597492 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 8 Mar 2011 14:44:13 -0500 Subject: qa-slave-shield.cpp and test-session.cpp fixes for Mini and RET6 Edition. There's a bit of a hack on the RET6 NR_DAC_PINS: due to the fact that PA5 is hooked up to the built-in LED and DAC channel 2, I set NR_DAC_PINS to 0 for the STM32F103RE (in libmaple.h), so that init() doesn't dac_init() and mess with the LED. Not too worried about it since this is just a beta board, but we'll need to fix this in the design for the real version. Also, BUT should be moved, since it steals Timer 8's channel 4 CC connection. --- examples/qa-slave-shield.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'examples/qa-slave-shield.cpp') diff --git a/examples/qa-slave-shield.cpp b/examples/qa-slave-shield.cpp index 5ca451d..fc33a4a 100644 --- a/examples/qa-slave-shield.cpp +++ b/examples/qa-slave-shield.cpp @@ -24,7 +24,6 @@ bool skip_pin_p(uint8 pin); void setup() { /* Set up the LED to blink */ pinMode(LED_PIN, OUTPUT); - digitalWrite(LED_PIN, HIGH); for(int i = 0; i < NR_GPIO_PINS; i++) { if (skip_pin_p(i)) { @@ -39,7 +38,6 @@ void setup() { void loop() { toggleLED(); delay(100); - toggleLED(); for(int i = 0; i < NR_GPIO_PINS; i++) { if (skip_pin_p(i)) { -- cgit v1.2.3