Skip to content

LCD Task Message

Hampus Sandberg edited this page Jun 28, 2015 · 2 revisions

Introduction

FILES: Header

The LCD Task can receive messages from other tasks or drivers. This is implemented using Queues in FreeRTOS. Each message has an event and eight optional uint32_t data.

Different kinds of events

LCDEvent_TouchEvent

This is used by the FT5206 driver to notify the LCD task that a touch event has happened. The data consists of:

  • data[0]=x
  • data[1]=y
  • data[2]=FT5206Event
  • data[3]=FT5206Point_n

LCDEvent_TemperatureData

This is used by the MCP9808 driver to send a new temperature value to the LCD task. The data here is:

  • data[0]=temperature as a float
Clone this wiki locally