Name: TextDisplay
Owner: ms-iot
Description: a text display driver framework
Created: 2015-08-21 20:49:13.0
Updated: 2016-04-29 20:25:33.0
Pushed: 2016-07-01 21:09:45.0
Homepage: null
Size: 85
Language: C#
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
a text display driver framework
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Supported Displays:
HD44780 powered display (4Bit mode only) over GPIO - driverType="HD44780GpioDriver"
Usage:
var displays = await TextDisplayManager.GetDisplays();
Adding a Driver:
Drivers are C# classes that inherit from TextDisplayBase, these drivers must be added as a part of the TextDisplay component to be able to be activated.
screens.config:
This xml configuration file describes the screens that are currently attached to the system.
Each Screen element is broken into 2 main elements, CommonConfiguration and DriverConfiguration.
CommonConfiguration contians the Heigh and Width of the screen
DriverConfiguration contains a XML fragment that is passsed into the driver on initialization
Below is an example of a screens.config that has 1 HD44780GpioDriver driven screen:
<CommonCofiguration>
<Height>2</Height>
<Width>16</Width>
</CommonCofiguration>
<DriverConiguration>
<RsPin>18</RsPin>
<EnablePin>23</EnablePin>
<D4Pin>24</D4Pin>
<D5Pin>5</D5Pin>
<D6Pin>6</D6Pin>
<D7Pin>13</D7Pin>
</DriverConiguration>