Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (32 sloc) 1.38 KB
<robo4j>
<roboUnit id="lcd">
<class>com.robo4j.units.rpi.lcd.AdafruitLcdUnit</class>
<config name="com.robo4j.root">
<value name="bus" type="int">1</value>
<value name="address" type="int">0x20</value>
</config>
</roboUnit>
<roboUnit id="buttons">
<class>com.robo4j.units.rpi.lcd.AdafruitButtonUnit</class>
<config name="com.robo4j.root">
<value name="bus" type="int">1</value>
<value name="address" type="int">0x20</value>
<value name="target" type="String">controller</value>
</config>
</roboUnit>
<roboUnit id="controller">
<class>com.robo4j.rpi.lcd.example.controller.LcdExampleController</class>
<config name="com.robo4j.root">
<value name="target" type="String">lcd</value>
</config>
</roboUnit>
<roboUnit id="http">
<class>com.robo4j.socket.http.units.HttpServerUnit</class>
<config name="com.robo4j.root">
<value name="port" type="int">8025</value>
<value name="target" type="String">controller</value>
<value name="packages" type="String">com.robo4j.rpi.lcd.example.codec</value>
<value name="unitPathsConfig" type="String">[{"roboUnit":"controller","method":"POST"},{"roboUnit":"controller","method":"GET"}]</value>
</config>
</roboUnit>
</robo4j>