Compare commits

...

10 Commits

Author SHA1 Message Date
tla
a57abed989 completed chapter Tube connection
Completed Operation
added reference to hand injury sticker

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@480 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-26 14:52:03 +00:00
mmi
da411065e8 LED inverted
Display brightness set to max

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@479 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-26 09:00:38 +00:00
tla
8fecd7ef99 Daily commit
Added picture for placement.

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@478 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-20 14:14:27 +00:00
tla
7bb01bea8c Added HW validation for A2-001
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@477 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-19 15:11:02 +00:00
tla
59a7ab4634 Added HW validation for A1-001
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@476 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-19 15:10:39 +00:00
tla
1983bd24af Added HW validation for A0-001
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@475 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-19 15:10:15 +00:00
tla
713741793b Added testlog
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@474 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-19 15:09:40 +00:00
tla
ace5ab31bd Added HW validation for A0-002
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@473 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-19 15:09:17 +00:00
tla
2c2c6eb548 Added HW validation for A1-002
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@472 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-19 15:04:05 +00:00
tla
31c4aed7e8 Added HW validation for A2-002
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@471 05563f52-14a8-4384-a975-3d1654cca0fa
2018-03-19 15:03:43 +00:00
31 changed files with 23 additions and 9 deletions

View File

@@ -80,15 +80,19 @@ ErrorStatus Led_construct(struct Gpio* onboardGreen, struct Gpio* onboardOrange,
self.leds[LED_ONBOARD_GREEN].ioDevice = &onboardGreen->device;
self.leds[LED_ONBOARD_GREEN].initialized = true;
Led_off(LED_ONBOARD_GREEN);
self.leds[LED_ONBOARD_ORANGE].ioDevice = &onboardOrange->device;
self.leds[LED_ONBOARD_ORANGE].initialized = true;
Led_off(LED_ONBOARD_ORANGE);
self.leds[LED_BICOLOR_GREEN].ioDevice = &bicolourGreen->device;
self.leds[LED_BICOLOR_GREEN].initialized = true;
Led_off(LED_BICOLOR_GREEN);
self.leds[LED_BICOLOR_RED].ioDevice = &bicolourRed->device;
self.leds[LED_BICOLOR_RED].initialized = true;
Led_off(LED_BICOLOR_RED);
}
else
{
@@ -110,18 +114,18 @@ extern void Led_on(Led led)
// IN case of the BICOLOUR LED, actually the GREEN and RED LEDs must be switched
if (led == LED_BICOLOR_ORANGE)
{
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferTrue, 1);
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferTrue, 1);
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferFalse, 1);
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferFalse, 1);
}
else if (led == LED_BICOLOR_GREEN)
{
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferTrue, 1);
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferFalse, 1);
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferFalse, 1);
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferTrue, 1);
}
else if (led == LED_BICOLOR_RED)
{
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferFalse, 1);
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferTrue, 1);
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferTrue, 1);
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferFalse, 1);
}
else
{
@@ -135,7 +139,9 @@ extern void Led_on(Led led)
extern void Led_off(Led led)
{
char bufferTrue = (char)true;
char bufferFalse = (char)false;
if (self.initialized)
{
if (self.leds[led].initialized)
@@ -143,8 +149,16 @@ extern void Led_off(Led led)
// IN case of the BICOLOUR ORANGE LED, actually the GREEN and RED LEDs must be switched
if (led == LED_BICOLOR_ORANGE)
{
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferFalse, 1);
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferFalse, 1);
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferTrue, 1);
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferTrue, 1);
}
else if (led == LED_BICOLOR_GREEN)
{
IODevice_write(self.leds[LED_BICOLOR_GREEN].ioDevice, &bufferTrue, 1);
}
else if (led == LED_BICOLOR_RED)
{
IODevice_write(self.leds[LED_BICOLOR_RED].ioDevice, &bufferTrue, 1);
}
else

View File

@@ -42,7 +42,7 @@
#define MAINDISP_REFRESH_FEED_MS (1000)
#define MAINDISP_REFRESH_PERIOD (5000)
#define MAINDISP_DEFAULT_BRIGHTNESS (5) // Set to MAX to avoid background light issue
#define MAINDISP_DEFAULT_BRIGHTNESS (NHD0420_BRIGHTNESS_MAX) // Set to MAX to avoid background light issue
#define MAINDISP_DEFAULT_CONTRAST (40)
// -----------------------------------------------------------------------------
// Type definitions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB