Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed analog feature in order to try to unite branches.

  • Loading branch information...
commit 6230ffc249f4830586ade47b8bd31cd278078fd2 1 parent 7339323
@nseidle nseidle authored
View
3  ...re/Serial 7-Segment Display/Arduino_Examples/S7S_Example_Serial_Predator/S7S_Example_Serial_Predator.ino
@@ -15,7 +15,6 @@
http://github.com/sparkfun/Serial7SegmentDisplay/wiki/Special-Commands#wiki-baud
To get this code to work, attached an Serial7Segment to an Arduino Uno using the following pins:
- Pin 7 on Uno (software serial RX) to TX on Serial7Segment
Pin 8 on Uno to RX on Serial7Segment
VIN to PWR
GND to GND
@@ -40,8 +39,6 @@
SoftwareSerial Serial7Segment(7, 8); //RX pin, TX pin
-int cycles = 0;
-
void setup() {
Serial.begin(9600);
View
28 firmware/Serial 7-Segment Display/Serial_7_Segment_Display_Firmware/Serial_7_Segment_Display_Firmware.ino
@@ -118,35 +118,7 @@ void setup()
// The display is constantly PWM'd in the loop()
void loop()
{
- /*analogValue6 = analogRead(A6);
- analogValue7 = analogRead(A7);*/
-
- //Serial.print("A6: ");
- //Serial.print(analogValue6);
- //Serial.print(" A7: ");
- //Serial.print(analogValue7);
-
- //Do calculation for 1st voltage meter
- /*float fvoltage6 = ((analogValue6 * 50) / (float)1024);
- int voltage6 = round(fvoltage6);
- display.digits[0] = voltage6 / 10;
- display.digits[1] = voltage6 % 10;
-
- //Do calculation for 2nd voltage meter
- float fvoltage7 = ((analogValue7 * 50) / (float)1024);
- int voltage7 = round(fvoltage7);
- display.digits[2] = voltage7 / 10;
- display.digits[3] = voltage7 % 10;
-
- display.decimals = ((1<<DECIMAL1) | (1<<DECIMAL3)); //Turn on the decimals next to digit1 and digit3
- myDisplay.DisplayString(display.digits, display.decimals); //(numberToDisplay, decimal point location)
- */
-
-
-// long myTimer = millis();
myDisplay.DisplayString(display.digits, display.decimals); //(numberToDisplay, decimal point location)
-// Serial.print("Timer: ");
-// Serial.println(millis() - myTimer);
}
// This is effectively the UART0 byte received interrupt routine
Please sign in to comment.
Something went wrong with that request. Please try again.