Now compiles and runs a motor correctly. Reading the step counter over I2C does not work, and there's a weird I2C bug where alternate writes fail.