https://github.com/corygrant/CANBoard_HW
Would anyone be available to review v2? Shall I order a bunch?
GPIO simple CAN enabled IO board by DRT Cory Grant
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
GPIO simple CAN enabled IO board by DRT Cory Grant
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: GPIO simple CAN enabled IO board by DRT Cory Grant
Had a minor mishap with BOM.
It works!
So far got one digital input into rusEFI and one output tested with Lua.
It works!
So far got one digital input into rusEFI and one output tested with Lua.
Code: Select all
value = 0
function onAcCanRx(bus, id, dlc, data)
value = data[5]
txCan(1, 0x640 + 3, 0, { value, value, value, value })
print('got CAN id=' ..id ..' payload @5: ' ..data[5] ..' @6: ' ..data[6])
end
-- canRxAdd(1, 0x640 + 0, onAcCanRx)
-- canRxAdd(1, 0x640 + 1, onAcCanRx)
canRxAdd(1, 0x640 + 2, onAcCanRx)
- Attachments
-
- it's-alive.jpeg (208.74 KiB) Viewed 7987 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute