SINTEF-9012 / JArduino

Program your Arduino in Java
https://github.com/SINTEF-9012/JArduino/wiki
177 stars 63 forks source link

Value of InterruptPin is incorrect #80

Open marron9999 opened 5 years ago

marron9999 commented 5 years ago

package org.sintef.jarduino; public enum InterruptPin { PIN_2_INT0((byte)2), PIN_3_INT1((byte)3);

static { map = new HashMap<Byte, InterruptPin>(); map.put((byte)2, InterruptPin.PIN_2_INT0); map.put((byte)3, InterruptPin.PIN_3_INT1); }

Value of InterruptPin is incorrect Should use 0, 1?

JArduino.h

define InterruptPin_PIN_2_INT0 0

define InterruptPin_PIN_3_INT1 1