Configtool: learn about 4-bit bus pins.

This commit is contained in:
Markus Hitter 2016-05-29 19:18:26 +02:00
parent ad021f7df7
commit b9fe0a5dd0
22 changed files with 317 additions and 1 deletions

View File

@ -296,6 +296,20 @@ DEFINE_HEATER(fan, DIO8, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -292,6 +292,20 @@ DEFINE_HEATER(extruder, AIO2, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -284,6 +284,20 @@ DEFINE_TEMP_SENSOR(noheater, TT_INTERCOM, AIO0, 0)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -287,6 +287,20 @@ DEFINE_HEATER(extruder, DIO6, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -302,6 +302,20 @@ DEFINE_HEATER(bed, PIO1_9, 1, 10)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -298,6 +298,20 @@ DEFINE_HEATER(bed, DIO3, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -299,6 +299,20 @@ DEFINE_HEATER(bed, DIO3, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -300,6 +300,20 @@ DEFINE_HEATER(fan, DIO4, 0, 0)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -296,6 +296,20 @@ DEFINE_HEATER(bed, DIO3, 0, 1)
#define DISPLAY_BUS_I2C #define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -297,6 +297,20 @@ DEFINE_HEATER(fan, DIO9, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -302,6 +302,20 @@ DEFINE_HEATER(fan, DIO9, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -300,6 +300,20 @@ DEFINE_HEATER(fan, DIO8, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -296,6 +296,20 @@ DEFINE_HEATER(bed, DIO14, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -296,6 +296,20 @@ DEFINE_HEATER(bed, DIO13, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -296,6 +296,20 @@ DEFINE_HEATER(bed, DIO4, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -299,6 +299,20 @@ DEFINE_HEATER(fan, DIO5, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -296,6 +296,20 @@ DEFINE_HEATER(fan, DIO16, 0, 0)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -296,6 +296,20 @@ DEFINE_HEATER(fan, DIO8, 0, 0)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -298,6 +298,20 @@ DEFINE_HEATER(fan, DIO4, 0, 1)
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -284,6 +284,20 @@
#define DISPLAY_BUS_I2C #define DISPLAY_BUS_I2C
#define DISPLAY_BUS_SPI #define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
#define DISPLAY_RS_PIN xxxx
#define DISPLAY_RW_PIN xxxx
#define DISPLAY_E_PIN xxxx
#define DISPLAY_D4_PIN xxxx
#define DISPLAY_D5_PIN xxxx
#define DISPLAY_D6_PIN xxxx
#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account

View File

@ -3,6 +3,8 @@
import wx import wx
from configtool.page import Page from configtool.page import Page
from configtool.data import pinNames
class DisplayPage(wx.Panel, Page): class DisplayPage(wx.Panel, Page):
def __init__(self, parent, nb, idPg, font): def __init__(self, parent, nb, idPg, font):
@ -18,7 +20,14 @@ class DisplayPage(wx.Panel, Page):
'DISPLAY_BUS_I2C': "I²C ( = TWI)", 'DISPLAY_BUS_I2C': "I²C ( = TWI)",
'DISPLAY_BUS_SPI': "SPI", 'DISPLAY_BUS_SPI': "SPI",
'DISPLAY_TYPE_SSD1306': "SSD1306 O-LED, 128x32 pixels", 'DISPLAY_TYPE_SSD1306': "SSD1306 O-LED, 128x32 pixels",
'DISPLAY_TYPE_HD44780': "HD44780 or 1602A, 16x2 characters"} 'DISPLAY_TYPE_HD44780': "HD44780 or 1602A, 16x2 characters",
'DISPLAY_RS_PIN': "RS pin",
'DISPLAY_RW_PIN': "R/W pin",
'DISPLAY_E_PIN': "E pin",
'DISPLAY_D4_PIN': "D4 pin",
'DISPLAY_D5_PIN': "D5 pin",
'DISPLAY_D6_PIN': "D6 pin",
'DISPLAY_D7_PIN': "D7 pin"}
sz = wx.GridBagSizer() sz = wx.GridBagSizer()
sz.AddSpacer((20, 40), pos = (0, 0)) sz.AddSpacer((20, 40), pos = (0, 0))
@ -32,6 +41,19 @@ class DisplayPage(wx.Panel, Page):
size = (240, -1)) size = (240, -1))
sz.Add(ch, pos = (1, 3)) sz.Add(ch, pos = (1, 3))
b = wx.StaticBox(self, wx.ID_ANY, "Direct 4-bit Bus Pins:")
b.SetFont(font)
sbox = wx.StaticBoxSizer(b, wx.VERTICAL)
sbox.AddSpacer((5, 5))
for k in ('DISPLAY_RS_PIN', 'DISPLAY_RW_PIN', 'DISPLAY_E_PIN',
'DISPLAY_D4_PIN', 'DISPLAY_D5_PIN', 'DISPLAY_D6_PIN',
'DISPLAY_D7_PIN'):
tc = self.addPinChoice(k, "", pinNames, True, 200)
sbox.Add(tc)
sbox.AddSpacer((5, 5))
sz.Add(sbox, pos = (3, 1))
self.SetSizer(sz) self.SetSizer(sz)
self.enableAll(False) self.enableAll(False)

View File

@ -687,6 +687,20 @@ PWM value for 'off'
//#define DISPLAY_BUS_I2C //#define DISPLAY_BUS_I2C
//#define DISPLAY_BUS_SPI //#define DISPLAY_BUS_SPI
/** \def DISPLAY_RS_PIN DISPLAY_RW_PIN DISPLAY_E_PIN
\def DISPLAY_D4_PIN DISPLAY_D5_PIN DISPLAY_D6_PIN DISPLAY_D7_PIN
Pins necessary for the 4-bit parallel display bus. Taken into account with
DISPLAY_BUS_4BIT defined, only.
*/
//#define DISPLAY_RS_PIN xxxx
//#define DISPLAY_RW_PIN xxxx
//#define DISPLAY_E_PIN xxxx
//#define DISPLAY_D4_PIN xxxx
//#define DISPLAY_D5_PIN xxxx
//#define DISPLAY_D6_PIN xxxx
//#define DISPLAY_D7_PIN xxxx
/** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780 /** \def DISPLAY_TYPE_SSD1306 DISPLAY_TYPE_HD44780
The type of display in use. There can be only one choice. Taken into account The type of display in use. There can be only one choice. Taken into account