protofusion

open hardware and software

User Tools

Site Tools


zoncoffee_pid_controller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
zoncoffee_pid_controller [2014/11/04 18:27] – [Libraries] Ethan Zoncazoncoffee_pid_controller [2014/11/04 18:35] – [LCD support] Ethan Zonca
Line 30: Line 30:
 The firmware comes pre-configured for the HD44780 parallel LCD display. To use a SparkFun serial LCD, you will need to change a couple configuration options: The firmware comes pre-configured for the HD44780 parallel LCD display. To use a SparkFun serial LCD, you will need to change a couple configuration options:
  
-In the Arduino sketch, browse to options.h+In the Arduino sketch, browse to ''options.h''
  
     13 //#define LCDSF      // Use SparkFun serial lcd     13 //#define LCDSF      // Use SparkFun serial lcd
Line 38: Line 38:
 Uncomment the LCDSF line and comment out the LCDHD line. Now your SparkFun LCD should work properly. Uncomment the LCDSF line and comment out the LCDHD line. Now your SparkFun LCD should work properly.
  
 +**There seems to be a bug in the Arduino IDE when switching between LCDs. If you change the selected display in ''options.h'' and get a ton of compilation errors, change the order of these two blocks in zoncoffee.ino (for example):**
 +
 +Change this: 
 +
 +    15 // Setup LCD
 +    16 #ifdef LCDHD
 +    17   #include <LiquidCrystal.h>
 +    18   LiquidCrystal lcd(A5,A4,A3,A2,A1,A0);
 +    19 #endif
 +    20
 +    21 #ifdef LCDSF
 +    22   #include <SLCD.h>
 +    23   SLCD sflcd = SLCD(LCDROWS, LCDCOLS);
 +    24 #endif
 +    
 +To this:
 +
 +    15 // Setup LCD
 +    16 #ifdef LCDSF
 +    17   #include <SLCD.h>
 +    18   SLCD sflcd = SLCD(LCDROWS, LCDCOLS);
 +    19 #endif
 +    20 #ifdef LCDHD
 +    21   #include <LiquidCrystal.h>
 +    22   LiquidCrystal lcd(A5,A4,A3,A2,A1,A0);
 +    23 #endif
 +    24
 +    
 +...or the other way around.
 +
 +    
 +    
  
  
zoncoffee_pid_controller.txt · Last modified: 2023/03/23 02:48 by 127.0.0.1