This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong.
This document contains a quick brain dump on adding support for a new LINX device. This page should be cleaned up and split into separate pages as appropriate.
\vi.lib\MakerHub\LINX\Firmware\Source\core\device
Create a new device config file in
\vi.lib\MakerHub\LINX\Firmware\Source\core\device\config
and name it Linx<DeviceName>.h. This file will be scripted into the libraries folder and is used to work around some limitations of the Arduino style build processes.
Add a firmware example to
\vi.lib\MakerHub\LINX\Firmware\Source\core\examples\<DeviceFamily>_<DeviceName>_<Interface>\<DeviceFamily>_<DeviceName>_<Interface>
. For wiring compatible devices it is easiest to copy and update an existing example:
In order to support the Arduino style IDEs and build processes the the Generate Firmware Libraries wizard is used to reorganize and rename files to fit the target build environment. In order to script the new firmware a new entry needs to be added to
\vi.lib\MakerHub\LINX\Firmware\Source\libraries.ini
Replace all instances of <DeviceName> below with the new device name:
;---------------------------------- <DeviceName> ---------------------------------- [<DeviceName>] ;Device Specific Class core/device/Linx<DeviceName>.h = Linx<DeviceName>/Linx<DeviceName>.h core/device/Linx<DeviceName>.cpp = Linx<DeviceName>/Linx<DeviceName>.cpp ;Device Specific Config core/device/config/Linx<DeviceName>.h = Linx<DeviceName>/config/LinxConfig.h ;Arduino Common core/device/utility/LinxDevice.h = Linx<DeviceName>/utility/LinxDevice.h core/device/utility/LinxDevice.cpp = Linx<DeviceName>/utility/LinxDevice.cpp core/device/utility/LinxWiringDevice.h = Linx<DeviceName>/utility/LinxWiringDevice.h core/device/utility/LinxWiringDevice.cpp = Linx<DeviceName>/utility/LinxWiringDevice.cpp