@ -AFS-
Is part of the growing pains. I had the same problem a while back. It took me a while to get it to compile with the right versions of the software. With the right versions of the compiler you should not have space problems just as mentioned by timelessbeing.
I had some notes but I don't know if they would help. (I don't have the links but they should be easy to find)
*Collection of Helpful information *
Firmware Building environment for Windows
1. Download and Install WinAVR > Link
2. Download Toolchain > Link
3. Extract Toolchain using Winrar or 7-zip into the C:\WinAVR-20100110 folder overwrite everything, avr, bin, doc...
4. credit: tom
Compiling the Firmware
1. Download GNU tarball > Link
2. Extract GNU tarball using Winrar or 7-zip somewhere
3. Download and Install Cygwin 64 bit
4. Launch Programmers Notepad installed by WinAVR
5. Open desired Makefile in the device specific folder from extracted tarball
6. Click Tools menu > [WinAVR] Make All
7. In the folder of Makefile you will find the flash .hex and eeprom .eep files
. From heelzFlyW
. I have mega328_color_kit "AY-AT" with LCD 7735. Took trendy 1.24m for a drive.
To get LCD to work I had to change lines below. One weird thing I see is on Start the LCD refreshes with multi color dots/sand.
In config_328.h:
1. From
. Code: [Select]
. #define LCD_ST7735
. #define LCD_DC PD3 /* port pin used for D/CX */
#define LCD_SCL PD2 /* port pin used for SCL */
#define LCD_SDA PD1 /* port pin used for SDA */
...
To
. Code: [Select]
. #define LCD_DC PD1 /* port pin used for D/CX */
#define LCD_SCL PD2 /* port pin used for SCL */
#define LCD_SDA PD3 /* port pin used for SDA */
2. From
. Code: [Select]
. //#define LCD_FLIP_X /* enable horizontal flip */
#define LCD_FLIP_Y /* enable vertical flip */
. To
. Code: [Select]
. #define LCD_FLIP_X /* enable horizontal flip */
//#define LCD_FLIP_Y /* enable vertical flip */
And for Encoder changed:
3. From
. Code: [Select]
. #define ENCODER_A PD2 /* rotary encoder A signal */
. To
. Code: [Select]
. #define ENCODER_A PD1 /* rotary encoder A signal */
I also noticed in PWM and Square Wave modes it shows Pins 2-13. I don't understand what it means
In variables.h
. Code: [Select]
. const unsigned char PWM_Probes_str[] EEMEM = "2-13"
DIY Kit "AY-AT"
- with ST7735 color LCD module
- provided by flywheelz@EEVBlog
Hardware Options:
#define HW_ENCODER
#define HW_REF25
#define HW_ZENER
#define HW_FREQ_COUNTER
LCD module:
#define LCD_ST7735
#define LCD_COLOR /* color graphic display */
#define LCD_SPI_BITBANG /* bit-bang SPI interface */
#define LCD_PORT PORTD /* port data register */
#define LCD_DDR DDRD /* port data direction register */
#define LCD_RES PD0 /* port pin used for /RESX */
#define LCD_CS PD5 /* port pin used for /CSX (optional) */
#define LCD_DC PD1 /* port pin used for D/CX */
#define LCD_SCL PD2 /* port pin used for SCL */
#define LCD_SDA PD3 /* port pin used for SDA */
#define LCD_DOTS_X 128 /* number of horizontal dots */
#define LCD_DOTS_Y 160 /* number of vertical dots */
#define LCD_FLIP_X /* enable horizontal flip */
//#define LCD_FLIP_Y /* enable vertical flip */
#define LCD_ROTATE /* switch X and Y (rotate by 90°) */
#define FONT_10X16_H /* 10x16 font, horizontally aligned */
#define SYMBOLS_24X24_H /* 24x24 symbols, horizontally aligned */
Rotary Encoder:
#define ENCODER_A PD1 /* rotary encoder A signal */
#define ENCODER_B PD3 /* rotary encoder B signal */
Input for the frequency counter is PD4 (T0).
