OUTPUT DEVICES


Home About me

ASSIGNMENT


Add an output device to a microcontroller board you've designed and program it to do something.

LCD


A modified Satshakit made in week 6 is used to program a 12864B V.2. LCD screen.

satshakit_modified

LCD is hooked to the board using only 3 digital pins of the microcontroller, following this guide.

Pins are connected as follows (dotted areas represent GND and VCC pins, respectively):

pinoutLCD

LCD   Modified-Satshakit
--------------------------
BLA - 3.3V pin
VCC - 5V pin
R/W - PB3 
RS  - PB4 
IE  - PB5 
GND - Ground
PSB - Ground
BLK - Ground 
  

A step-down 3.3V voltage regulator is connected to BLA, it is for the backlight of the LCD screen.

The board is programmed using the arduino-as-isp.

Pins between the board and arduino are connected:

BOARD		ARDUINO UNO
---------------------------
PC6(RST)	PIN10~
PB3(MOSI)	PIN11~
PB4(MISO)	PIN12
PB5(SCK)	PIN13 
  

I use the U8GLIB library to program the LCD screen.

As a test I upload the following code:

#include "U8glib.h"

U8GLIB_ST7920_128X64 u8g(13, 11, 12, U8G_PIN_NONE);

void draw(void) {
// graphic commands to redraw the complete screen should be placed here
u8g.setFont(u8g_font_04b_03b);
//u8g.setFont(u8g_font_osb21);
u8g.drawStr( 0, 22, "Fab Academy 2017");
}

void setup(void) {
// assign default color value
if ( u8g.getMode() == U8G_MODE_R3G3B2 )
u8g.setColorIndex(255); // white
else if ( u8g.getMode() == U8G_MODE_GRAY2BIT )
u8g.setColorIndex(3); // max intensity
else if ( u8g.getMode() == U8G_MODE_BW )
u8g.setColorIndex(1); // pixel on
}

void loop(void) {
// picture loop
u8g.firstPage();
do {
draw();
} while( u8g.nextPage() );

// rebuild the picture after some delay
delay(500);
} 
  

Code is uploaded as a programmer to the board, output is the following:

/home/jc/Downloads/1/arduino-1.6.13/arduino-builder -dump-prefs -logger=machine -hardware /home/jc/Downloads/1/arduino-1.6.13/hardware -hardware /home/jc/.arduino15/packages -tools /home/jc/Downloads/1/arduino-1.6.13/tools-builder -tools /home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr -tools /home/jc/.arduino15/packages -built-in-libraries /home/jc/Downloads/1/arduino-1.6.13/libraries -libraries /home/jc/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10613 -build-path /tmp/arduino_build_65804 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr -verbose /tmp/arduino_modified_sketch_696289/sketch_apr04a.ino
/home/jc/Downloads/1/arduino-1.6.13/arduino-builder -compile -logger=machine -hardware /home/jc/Downloads/1/arduino-1.6.13/hardware -hardware /home/jc/.arduino15/packages -tools /home/jc/Downloads/1/arduino-1.6.13/tools-builder -tools /home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr -tools /home/jc/.arduino15/packages -built-in-libraries /home/jc/Downloads/1/arduino-1.6.13/libraries -libraries /home/jc/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10613 -build-path /tmp/arduino_build_65804 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr -verbose /tmp/arduino_modified_sketch_696289/sketch_apr04a.ino
Using board 'uno' from platform in folder: /home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr
Using core 'arduino' from platform in folder: /home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr
Detecting libraries used...
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/variants/standard" "/tmp/arduino_build_65804/sketch/sketch_apr04a.ino.cpp" -o "/dev/null"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/variants/standard" "-I/home/jc/Arduino/libraries/U8glib" "/tmp/arduino_build_65804/sketch/sketch_apr04a.ino.cpp" -o "/dev/null"
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/U8glib.cpp
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/chessengine.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_bitmap.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_circle.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_clip.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_api.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_api_16gr.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_attiny85_hw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_common.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_fast_parallel.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_hw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_hw_usart_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_no_en_parallel.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_parallel.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_port_d_wr.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_ssd_i2c.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_st7920_custom.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_st7920_hw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_st7920_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_std_sw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_sw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_t6963.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_arduino_uc_i2c.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_atmega_hw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_atmega_parallel.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_atmega_st7920_hw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_atmega_st7920_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_atmega_sw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_i2c.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_io.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_msp430_hw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_null.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_raspberrypi_hw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_raspberrypi_ssd_i2c.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_com_std_sw_spi.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_cursor.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_delay.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_a2_micro_printer.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_flipdisc_2x7.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_gprof.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ht1632.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ili9325d_320x240.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ks0108_128x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_lc7981_160x80.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_lc7981_240x128.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_lc7981_240x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_lc7981_320x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ld7032_60x32.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_null.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_pcd8544_84x48.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_pcf8812_96x65.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_sbn1661_122x32.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1306_128x32.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1306_128x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1306_64x48.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1309_128x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1322_nhd31oled_bw.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1322_nhd31oled_gr.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_bw.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_bw_new.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_gr.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_gr_new.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1327_96x96_gr.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1351_128x128.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_ssd1353_160x128.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7565_64128n.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7565_dogm128.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7565_dogm132.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7565_lm6059.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7565_lm6063.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7565_nhd_c12832.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7565_nhd_c12864.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7687_c144mvgd.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7920_128x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7920_192x32.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_st7920_202x32.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_t6963_128x128.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_t6963_128x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_t6963_240x128.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_t6963_240x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_tls8204_84x48.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_uc1601_c128032.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_uc1608_240x128.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_uc1608_240x64.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_uc1610_dogxl160.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_uc1611_dogm240.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_uc1611_dogxl240.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_uc1701_dogs102.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_dev_uc1701_mini12864.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_ellipse.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_font.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_font_data.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_line.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_ll_api.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_page.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb14v1.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb16h1.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb16h2.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb16v1.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb16v2.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb32h1.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb8h1.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb8h1f.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb8h2.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb8h8.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb8v1.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pb8v2.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pbxh16.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_pbxh24.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_polygon.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_rect.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_rot.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_scale.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_state.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_u16toa.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_u8toa.c
Using cached library dependencies for file: /home/jc/Arduino/libraries/U8glib/utility/u8g_virtual_screen.c
Generating function prototypes...
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/variants/standard" "-I/home/jc/Arduino/libraries/U8glib" "/tmp/arduino_build_65804/sketch/sketch_apr04a.ino.cpp" -o "/tmp/arduino_build_65804/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/jc/Downloads/1/arduino-1.6.13/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_65804/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/variants/standard" "-I/home/jc/Arduino/libraries/U8glib" "/tmp/arduino_build_65804/sketch/sketch_apr04a.ino.cpp" -o "/tmp/arduino_build_65804/sketch/sketch_apr04a.ino.cpp.o"
Compiling libraries...
Compiling library "U8glib"
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/U8glib.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/chessengine.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_bitmap.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_circle.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_clip.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_api.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_api_16gr.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_attiny85_hw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_common.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_fast_parallel.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_hw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_hw_usart_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_no_en_parallel.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_parallel.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_port_d_wr.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_ssd_i2c.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_st7920_custom.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_st7920_hw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_st7920_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_std_sw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_sw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_t6963.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_uc_i2c.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_hw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_parallel.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_st7920_hw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_st7920_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_sw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_i2c.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_io.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_msp430_hw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_null.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_raspberrypi_hw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_raspberrypi_ssd_i2c.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_std_sw_spi.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_cursor.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_delay.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_a2_micro_printer.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_flipdisc_2x7.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_gprof.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ht1632.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ili9325d_320x240.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ks0108_128x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_lc7981_160x80.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_lc7981_240x128.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_lc7981_240x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_lc7981_320x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ld7032_60x32.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_null.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_pcd8544_84x48.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_pcf8812_96x65.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_sbn1661_122x32.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1306_128x32.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1306_128x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1306_64x48.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1309_128x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1322_nhd31oled_bw.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1322_nhd31oled_gr.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_bw.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_bw_new.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_gr.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_gr_new.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1327_96x96_gr.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1351_128x128.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1353_160x128.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_64128n.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_dogm128.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_dogm132.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_lm6059.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_lm6063.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_nhd_c12832.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_nhd_c12864.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7687_c144mvgd.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7920_128x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7920_192x32.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7920_202x32.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_t6963_128x128.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_t6963_128x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_t6963_240x128.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_t6963_240x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_tls8204_84x48.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1601_c128032.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1608_240x128.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1608_240x64.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1610_dogxl160.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1611_dogm240.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1611_dogxl240.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1701_dogs102.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1701_mini12864.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_ellipse.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_font.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_font_data.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_line.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_ll_api.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_page.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb14v1.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb16h1.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb16h2.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb16v1.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb16v2.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb32h1.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8h1.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8h1f.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8h2.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8h8.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8v1.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8v2.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pbxh16.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pbxh24.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_polygon.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_rect.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_rot.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_scale.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_state.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_u16toa.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_u8toa.c.o
Using previously compiled file: /tmp/arduino_build_65804/libraries/U8glib/utility/u8g_virtual_screen.c.o
Compiling core...
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/variants/standard" "/home/jc/Downloads/1/arduino-1.6.13/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/tmp/arduino_build_65804/core/wiring_pulse.S.o"
Using previously compiled file: /tmp/arduino_build_65804/core/WInterrupts.c.o
Using previously compiled file: /tmp/arduino_build_65804/core/hooks.c.o
Using previously compiled file: /tmp/arduino_build_65804/core/wiring.c.o
Using previously compiled file: /tmp/arduino_build_65804/core/wiring_analog.c.o
Using previously compiled file: /tmp/arduino_build_65804/core/wiring_digital.c.o
Using previously compiled file: /tmp/arduino_build_65804/core/wiring_pulse.c.o
Using previously compiled file: /tmp/arduino_build_65804/core/wiring_shift.c.o
Using previously compiled file: /tmp/arduino_build_65804/core/CDC.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/HardwareSerial.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/HardwareSerial0.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/HardwareSerial1.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/HardwareSerial2.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/HardwareSerial3.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/IPAddress.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/PluggableUSB.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/Print.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/Stream.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/Tone.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/USBCore.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/WMath.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/WString.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/abi.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/main.cpp.o
Using previously compiled file: /tmp/arduino_build_65804/core/new.cpp.o
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/wiring_pulse.S.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/WInterrupts.c.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/hooks.c.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/wiring.c.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/wiring_analog.c.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/wiring_digital.c.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/wiring_pulse.c.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/wiring_shift.c.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/CDC.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/HardwareSerial.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/HardwareSerial0.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/HardwareSerial1.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/HardwareSerial2.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/HardwareSerial3.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/IPAddress.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/PluggableUSB.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/Print.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/Stream.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/Tone.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/USBCore.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/WMath.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/WString.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/abi.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/main.cpp.o"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_65804/core/core.a" "/tmp/arduino_build_65804/core/new.cpp.o"
Linking everything together...
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "/tmp/arduino_build_65804/sketch_apr04a.ino.elf" "/tmp/arduino_build_65804/sketch/sketch_apr04a.ino.cpp.o" "/tmp/arduino_build_65804/libraries/U8glib/U8glib.cpp.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/chessengine.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_bitmap.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_circle.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_clip.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_api.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_api_16gr.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_attiny85_hw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_common.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_fast_parallel.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_hw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_hw_usart_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_no_en_parallel.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_parallel.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_port_d_wr.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_ssd_i2c.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_st7920_custom.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_st7920_hw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_st7920_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_std_sw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_sw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_t6963.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_arduino_uc_i2c.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_hw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_parallel.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_st7920_hw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_st7920_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_atmega_sw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_i2c.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_io.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_msp430_hw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_null.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_raspberrypi_hw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_raspberrypi_ssd_i2c.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_com_std_sw_spi.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_cursor.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_delay.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_a2_micro_printer.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_flipdisc_2x7.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_gprof.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ht1632.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ili9325d_320x240.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ks0108_128x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_lc7981_160x80.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_lc7981_240x128.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_lc7981_240x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_lc7981_320x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ld7032_60x32.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_null.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_pcd8544_84x48.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_pcf8812_96x65.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_sbn1661_122x32.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1306_128x32.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1306_128x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1306_64x48.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1309_128x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1322_nhd31oled_bw.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1322_nhd31oled_gr.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_bw.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_bw_new.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_gr.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1325_nhd27oled_gr_new.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1327_96x96_gr.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1351_128x128.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_ssd1353_160x128.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_64128n.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_dogm128.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_dogm132.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_lm6059.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_lm6063.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_nhd_c12832.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7565_nhd_c12864.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7687_c144mvgd.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7920_128x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7920_192x32.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_st7920_202x32.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_t6963_128x128.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_t6963_128x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_t6963_240x128.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_t6963_240x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_tls8204_84x48.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1601_c128032.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1608_240x128.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1608_240x64.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1610_dogxl160.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1611_dogm240.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1611_dogxl240.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1701_dogs102.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_dev_uc1701_mini12864.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_ellipse.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_font.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_font_data.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_line.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_ll_api.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_page.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb14v1.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb16h1.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb16h2.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb16v1.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb16v2.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb32h1.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8h1.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8h1f.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8h2.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8h8.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8v1.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pb8v2.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pbxh16.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_pbxh24.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_polygon.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_rect.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_rot.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_scale.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_state.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_u16toa.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_u8toa.c.o" "/tmp/arduino_build_65804/libraries/U8glib/utility/u8g_virtual_screen.c.o" "/tmp/arduino_build_65804/core/core.a" "-L/tmp/arduino_build_65804" -lm
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "/tmp/arduino_build_65804/sketch_apr04a.ino.elf" "/tmp/arduino_build_65804/sketch_apr04a.ino.eep"
"/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom  "/tmp/arduino_build_65804/sketch_apr04a.ino.elf" "/tmp/arduino_build_65804/sketch_apr04a.ino.hex"
Using library U8glib in folder: /home/jc/Arduino/libraries/U8glib (legacy)

Sketch uses 5,364 bytes (16%) of program storage space. Maximum is 32,256 bytes.
Global variables use 256 bytes (12%) of dynamic memory, leaving 1,792 bytes for local variables. Maximum is 2,048 bytes.
/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/bin/avrdude -C/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/ttyACM3 -b19200 -Uflash:w:/tmp/arduino_build_65804/sketch_apr04a.ino.hex:i 

avrdude: Version 6.3, compiled on Sep 12 2016 at 15:21:49
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/jc/Downloads/1/arduino-1.6.13/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/jc/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/tmp/arduino_build_65804/sketch_apr04a.ino.hex"
avrdude: writing flash (5364 bytes):

Writing | ################################################## | 100% 5.85s

avrdude: 5364 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_65804/sketch_apr04a.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_65804/sketch_apr04a.ino.hex:
avrdude: input file /tmp/arduino_build_65804/sketch_apr04a.ino.hex contains 5364 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 3.27s

avrdude: verifying ...
avrdude: 5364 bytes of flash verified

avrdude done.  Thank you. 
  

Test of LCD ran successfully:

lcd

DESIGN OF STEPPER BOARD


This week I designed a stepper motor board based on Gianluca Pugliese.'s board.

Further details about the design process can be found in my final project page.

The board layout:

Detailed schematic:

eagle

Final soldered board:

stepper board final

THis board design was furtherly improved, see final project electronics design page.

STEPPER MOTOR


A4988 stepper driver is tested using one of my boards designed.

Code makes the stepper motor rotate 360 degrees continuously; it uses the A4988 arduino libary.

Code is uploaded to the board using arduino IDE.

#include 
#include "A4988.h"

// using a 200-step motor (most common)
// pins used are DIR, STEP, MS1, MS2, MS3 in that order
A4988 stepper(200, PD5, PD6, PB3, PB4, PB5);

void setup() {
    // Set target motor RPM to 1RPM
    stepper.setRPM(10);
    // Set full speed mode (microstepping also works for smoother hand movement
    stepper.setMicrostep(1);
}

void loop() {
    // Motor rotates 360 degrees 
    while(1){
    stepper.rotate(360);
    }
}

ICSP is connected as follows to the JC-watchobot-v1.0 board.

And code is uploaded with the arduino as a programmer.

/home/jc/Program Files/arduino-1.6.13/arduino-builder -dump-prefs -logger=machine -hardware /home/jc/Program Files/arduino-1.6.13/hardware -hardware /home/jc/.arduino15/packages -tools /home/jc/Program Files/arduino-1.6.13/tools-builder -tools /home/jc/Program Files/arduino-1.6.13/hardware/tools/avr -tools /home/jc/.arduino15/packages -built-in-libraries /home/jc/Program Files/arduino-1.6.13/libraries -libraries /home/jc/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10613 -build-path /tmp/arduino_build_872579 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr -verbose /home/jc/Arduino/test_a4988_360move/test_a4988_360move.ino
/home/jc/Program Files/arduino-1.6.13/arduino-builder -compile -logger=machine -hardware /home/jc/Program Files/arduino-1.6.13/hardware -hardware /home/jc/.arduino15/packages -tools /home/jc/Program Files/arduino-1.6.13/tools-builder -tools /home/jc/Program Files/arduino-1.6.13/hardware/tools/avr -tools /home/jc/.arduino15/packages -built-in-libraries /home/jc/Program Files/arduino-1.6.13/libraries -libraries /home/jc/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10613 -build-path /tmp/arduino_build_872579 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr -verbose /home/jc/Arduino/test_a4988_360move/test_a4988_360move.ino
Using board 'uno' from platform in folder: /home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr
Using core 'arduino' from platform in folder: /home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr
Detecting libraries used...
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/variants/standard" "/tmp/arduino_build_872579/sketch/test_a4988_360move.ino.cpp" -o "/dev/null"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/variants/standard" "-I/home/jc/Arduino/libraries/StepperDriver-master/src" "/tmp/arduino_build_872579/sketch/test_a4988_360move.ino.cpp" -o "/dev/null"
Using cached library dependencies for file: /home/jc/Arduino/libraries/StepperDriver-master/src/A4988.cpp
Using cached library dependencies for file: /home/jc/Arduino/libraries/StepperDriver-master/src/BasicStepperDriver.cpp
Using cached library dependencies for file: /home/jc/Arduino/libraries/StepperDriver-master/src/DRV8825.cpp
Using cached library dependencies for file: /home/jc/Arduino/libraries/StepperDriver-master/src/DRV8834.cpp
Generating function prototypes...
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/variants/standard" "-I/home/jc/Arduino/libraries/StepperDriver-master/src" "/tmp/arduino_build_872579/sketch/test_a4988_360move.ino.cpp" -o "/tmp/arduino_build_872579/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/jc/Program Files/arduino-1.6.13/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_872579/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/variants/standard" "-I/home/jc/Arduino/libraries/StepperDriver-master/src" "/tmp/arduino_build_872579/sketch/test_a4988_360move.ino.cpp" -o "/tmp/arduino_build_872579/sketch/test_a4988_360move.ino.cpp.o"
Compiling libraries...
Compiling library "StepperDriver-master"
Using previously compiled file: /tmp/arduino_build_872579/libraries/StepperDriver-master/A4988.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/libraries/StepperDriver-master/BasicStepperDriver.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/libraries/StepperDriver-master/DRV8825.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/libraries/StepperDriver-master/DRV8834.cpp.o
Compiling core...
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/cores/arduino" "-I/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/variants/standard" "/home/jc/Program Files/arduino-1.6.13/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/tmp/arduino_build_872579/core/wiring_pulse.S.o"
Using previously compiled file: /tmp/arduino_build_872579/core/WInterrupts.c.o
Using previously compiled file: /tmp/arduino_build_872579/core/hooks.c.o
Using previously compiled file: /tmp/arduino_build_872579/core/wiring.c.o
Using previously compiled file: /tmp/arduino_build_872579/core/wiring_analog.c.o
Using previously compiled file: /tmp/arduino_build_872579/core/wiring_digital.c.o
Using previously compiled file: /tmp/arduino_build_872579/core/wiring_pulse.c.o
Using previously compiled file: /tmp/arduino_build_872579/core/wiring_shift.c.o
Using previously compiled file: /tmp/arduino_build_872579/core/CDC.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/HardwareSerial.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/HardwareSerial0.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/HardwareSerial1.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/HardwareSerial2.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/HardwareSerial3.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/IPAddress.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/PluggableUSB.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/Print.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/Stream.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/Tone.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/USBCore.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/WMath.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/WString.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/abi.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/main.cpp.o
Using previously compiled file: /tmp/arduino_build_872579/core/new.cpp.o
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/wiring_pulse.S.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/WInterrupts.c.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/hooks.c.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/wiring.c.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/wiring_analog.c.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/wiring_digital.c.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/wiring_pulse.c.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/wiring_shift.c.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/CDC.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/HardwareSerial.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/HardwareSerial0.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/HardwareSerial1.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/HardwareSerial2.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/HardwareSerial3.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/IPAddress.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/PluggableUSB.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/Print.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/Stream.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/Tone.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/USBCore.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/WMath.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/WString.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/abi.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/main.cpp.o"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_872579/core/core.a" "/tmp/arduino_build_872579/core/new.cpp.o"
Linking everything together...
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "/tmp/arduino_build_872579/test_a4988_360move.ino.elf" "/tmp/arduino_build_872579/sketch/test_a4988_360move.ino.cpp.o" "/tmp/arduino_build_872579/libraries/StepperDriver-master/A4988.cpp.o" "/tmp/arduino_build_872579/libraries/StepperDriver-master/BasicStepperDriver.cpp.o" "/tmp/arduino_build_872579/libraries/StepperDriver-master/DRV8825.cpp.o" "/tmp/arduino_build_872579/libraries/StepperDriver-master/DRV8834.cpp.o" "/tmp/arduino_build_872579/core/core.a" "-L/tmp/arduino_build_872579" -lm
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "/tmp/arduino_build_872579/test_a4988_360move.ino.elf" "/tmp/arduino_build_872579/test_a4988_360move.ino.eep"
"/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom  "/tmp/arduino_build_872579/test_a4988_360move.ino.elf" "/tmp/arduino_build_872579/test_a4988_360move.ino.hex"
Using library StepperDriver-master at version 1.0.6 in folder: /home/jc/Arduino/libraries/StepperDriver-master 

Sketch uses 1,972 bytes (6%) of program storage space. Maximum is 32,256 bytes.
Global variables use 55 bytes (2%) of dynamic memory, leaving 1,993 bytes for local variables. Maximum is 2,048 bytes.
/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/bin/avrdude -C/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyACM3 -b115200 -D -Uflash:w:/tmp/arduino_build_872579/test_a4988_360move.ino.hex:i 

avrdude: Version 6.3, compiled on Sep 12 2016 at 15:21:49
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/jc/Program Files/arduino-1.6.13/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/jc/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "/tmp/arduino_build_872579/test_a4988_360move.ino.hex"
avrdude: writing flash (1972 bytes):

Writing | ################################################## | 100% 0.36s

avrdude: 1972 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_872579/test_a4988_360move.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_872579/test_a4988_360move.ino.hex:
avrdude: input file /tmp/arduino_build_872579/test_a4988_360move.ino.hex contains 1972 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.26s

avrdude: verifying ...
avrdude: 1972 bytes of flash verified

avrdude done.  Thank you. 
  

LESSONS LEARNED


FILES


Test LCD code

jc_a4880 eagle files

RESOURCES


GitHub - Satshakit

LCD 12864 hookup


The content of this page is licensed under Attribution-NonCommercial 4.0 International CC BY-NC 4.0. Any source code, if otherwise unspecified, is licensed under the MIT License