diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-07-02 00:57:35 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-07-20 15:37:09 -0400 |
commit | dd52d66d034c943380d4a95d7677cff7772109df (patch) | |
tree | b650943b1921f229496c08ab1199039442f61c42 /examples/vga-scope.cpp | |
parent | 480dad829fe7870883d51cb641ce05aa62074424 (diff) | |
download | librambutan-dd52d66d034c943380d4a95d7677cff7772109df.tar.gz librambutan-dd52d66d034c943380d4a95d7677cff7772109df.zip |
timers progress
examples code cleanup, more descriptive comments, more notes
Diffstat (limited to 'examples/vga-scope.cpp')
-rw-r--r-- | examples/vga-scope.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/vga-scope.cpp b/examples/vga-scope.cpp index 1f597a4..3e7e75e 100644 --- a/examples/vga-scope.cpp +++ b/examples/vga-scope.cpp @@ -1,33 +1,6 @@ #include "wirish.h" -/* -D5 PB6 - TIM4_CH1 I2C1_SCL - - Y -D6 PA8 - TIM1_CH1 - USART1_CK - Y -D7 PA9 - TIM1_CH2 - USART1_TX - Y -D8 PA10 - TIM1_CH3 - USART1_RX - Y -D9 PB7 - TIM4_CH2 I2C1_SDA - - Y -*/ - -//gpio_write_bit(GPIOB_BASE, 6, 1); // VGA_R -//gpio_write_bit(GPIOB_BASE, 6, 0); - -//(GPIOA_BASE)->BSRR = BIT(8); -//asm volatile("nop"); -//(GPIOA_BASE)->BRR = BIT(8); -/* - gpio_write_bit(GPIOB_BASE, 6, 1); // VGA_R - gpio_write_bit(GPIOB_BASE, 6, 0); - gpio_write_bit(GPIOA_BASE, 8, 1); // VGA_G - gpio_write_bit(GPIOA_BASE, 8, 0); - gpio_write_bit(GPIOA_BASE, 9, 1); // VGA_B - gpio_write_bit(GPIOA_BASE, 9, 0); - gpio_write_bit(GPIOA_BASE, 10, 1); // VGA_V - gpio_write_bit(GPIOA_BASE, 10, 0); - gpio_write_bit(GPIOB_BASE, 7, 1); // VGA_H - gpio_write_bit(GPIOB_BASE, 7, 0); -*/ - #define LED_PIN 13 #define ANALOG_PIN 18 #define VGA_R 5 // B6 @@ -152,7 +125,6 @@ void isr_update(void) { void loop() { //val = analogRead(ANALOG_PIN); - } |