slashdev / arm-loconet-starter

Starter project for Loconet projects. Based on arm-samd20-starter.
0 stars 0 forks source link

Add prototypes / functions to send messages #4

Closed fuegas closed 7 years ago

fuegas commented 7 years ago

Instead of sending a message like:

loconet_tx_queue_2(0xB2, 0x01, 0x02, 0x70);

We'd like to be able to send a message like:

loconet_tx_input_rep(uint16_t address, bool on);

This makes code more readable and the usage more according to the meaning of the message.