Thomas, there may be a bug in the max7317 component: uint8_t max7317::Input(uint8_t port) … uint8_t* p = m_spibus->spi_cmd(m_spi, buf, 1, 1, port + 0x80); According to the max7317 specsheet the read operation needs a second (dummy) byte. So this should be… uint8_t* p = m_spibus->spi_cmd(m_spi, buf, 1, 2, port + 0x80, 0); Please try & report. Regards, Michael Am 09.07.19 um 13:10 schrieb - -:
Hello,
How can I read inputs from max7317. when I try to log ESP_LOGD(TAG,"EGPIO5 input: %d", MyPeripherals->m_max7317->Input(MAX7317_EGPIO_5));
i get allways 0 when i put the egpio pin to GND or 3.3v do i somthing wrong or does it not work.
Regards Thomas
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26