How can I unit test Arduino code?

后端 未结 20 809
情深已故
情深已故 2020-12-07 06:53

I\'d like to be able to unit test my Arduino code. Ideally, I would be able to run any tests without having to upload the code to the Arduino. What tools or libraries can he

20条回答
  •  生来不讨喜
    2020-12-07 07:34

    simavr is an AVR simulator using avr-gcc.

    It already supports a few ATTiny and ATMega microcontrollers, and - according to the author - it's easy to add some more.

    In the examples lies simduino, an Arduino emulator. It supports running the Arduino bootloader and can be programmed with avrdude through Socat (a modified Netcat).

提交回复
热议问题