2020-06-17 | Paul Boddie | file changeset files shortlog | Added a mention of listlibs.sh which will need to be invoked for some examples. | jz4780-lcd |
paul@0 | 1 | -- vi:ft=lua |
paul@0 | 2 | -- configuration file for io |
paul@0 | 3 | |
paul@0 | 4 | local hw = Io.system_bus() |
paul@0 | 5 | |
paul@0 | 6 | local bus = Io.Vi.System_bus |
paul@0 | 7 | { |
paul@0 | 8 | CPM = wrap(hw:match("jz4780-cpm")); |
paul@0 | 9 | GPIO = wrap(hw:match("jz4780-gpio")); |
paul@0 | 10 | I2C = wrap(hw:match("jz4780-i2c")); |
paul@0 | 11 | } |
paul@0 | 12 | |
paul@0 | 13 | Io.add_vbus("i2c", bus) |