Skip to content

Commit

Permalink
Updated to work with newer arduino IDE version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Ivanov committed Nov 24, 2012
1 parent 933f406 commit 015b71d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 76 deletions.
69 changes: 0 additions & 69 deletions ArduinoDSP.pde

This file was deleted.

2 changes: 1 addition & 1 deletion dsp.cpp
@@ -1,6 +1,6 @@
#include "dsp.h"
#include "timers.h"
#include "WProgram.h"
#include "Arduino.h"

void setupIO() {
// prepare left
Expand Down
10 changes: 5 additions & 5 deletions oscilloscope.h
Expand Up @@ -24,13 +24,13 @@
#ifndef OSCILLOSCOPE_INC
#define OSCILLOSCOPE_INC

#include "WProgram.h"
#include "Arduino.h"

void writeOscilloscope(int channel, int value) {
Serial.print( 0xff, BYTE ); // send init byte
Serial.print( channel & 0xff, BYTE); // Send channel ID;
Serial.print( (value >> 8) & 0xff, BYTE ); // send first part
Serial.print( value & 0xff, BYTE ); // send second part
Serial.write( 0xff ); // send init byte
Serial.write( channel & 0xff); // Send channel ID;
Serial.write( (value >> 8) & 0xff ); // send first part
Serial.write( value & 0xff); // send second part
}
void writeOscilloscope(int value){
writeOscilloscope(0,value);
Expand Down
2 changes: 1 addition & 1 deletion timers.cpp
@@ -1,5 +1,5 @@
#include "timers.h"
#include "WConstants.h"
#include "Arduino.h"

int getTimer(int pin) {
switch(pin) {
Expand Down

0 comments on commit 015b71d

Please sign in to comment.