Wire.beginTransmission(0x60);
Wire.write(0x40); // Channel 0
// Value written by original software, no idea what this does
Wire.write(0x08); Wire.write(0x89);
Wire.endTransmission();
Wire.beginTransmission(0x60);
Wire.write(0x42); // Channel 1
uint16_t v = LEAD_ACID_BATTERY_CHARGE_VOLTAGE * 164;
Wire.write(v>>8); Wire.write(v&0xff);
Wire.endTransmission();
As for making it work using the original brain board's CAN interface, this is what I found: https://www.mynissanleaf.com/viewtopic. ... 80#p530880
Basically I found out bit 0x04 in the 0x1f2 frame disables the converter (set low to enable, just spam 0x1f2 00 64 00 a0 00 00 00 00 or so every 10ms). You might also need 50b, 1d4 and maybe 55b (probably not). Anyway, that's worthless without the charging working.