tamtor / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

AVR HW SPI mode does not set RESET pin as an output during the init function #258

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use AVR C code library
2. Config AVR device to use HW SPI
3. Boot device (I used with an SSD1306-based 128x64 OLED display)

What is the expected output? What do you see instead?
On boot, screen is scrambled due to incorrect RESET pin functionality. If using 
SW_SPI, the reset pin is set properly.

What version of the product are you using? On what operating system?
u8glib_avr_v1.15

Please provide any additional information below.

The following pin direction declaration is missing from the 
u8g_com_atmega_hw_spi.c file.
In the function "u8g_com_atmega_hw_spi_fn()", under case "U8G_COM_MSG_INIT", 
the "U8G_PI_RESET" should be declared as an output, but it is not. The 
following line should be added alongside the other direction statements (around 
line 97): 
"u8g_SetPIOutput(u8g, U8G_PI_RESET);"

Original issue reported on code.google.com by Richards...@gmail.com on 14 May 2014 at 3:05

GoogleCodeExporter commented 8 years ago
Thanks for reporting. I probably need to investigate this more closely.

Original comment by olikr...@gmail.com on 14 May 2014 at 5:56

GoogleCodeExporter commented 8 years ago
fixed, thanks for your bugdix.

Original comment by olikr...@gmail.com on 16 Jun 2014 at 7:25