jeanthom / boot2duino

The World's Most Useless Arduino Platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boot2duino

boot2duino serves no other purpose than to generate a bootable x86 floppy image using the Arduino IDE, which seemingly serves no purpose.

Watch it in action: writing a hello world; a very basic piano.

Examples

Video vid;

void setup() {
  vid.print("Hello world, from Arduino!");
}

void loop() {
  
}

boot2duino hello world example running inside QEMU

Other examples:

How to install

Linux :

mkdir -p ~/Arduino/hardware/boot2duino
cd ~/Arduino/hardware/boot2duino
git clone https://github.com/jeanthom/boot2duino

Windows :

mkdir %UserProfile%\Documents\Arduino\hardware
cd %UserProfile%\Documents\Arduino\hardware
git clone https://github.com/jeanthom/boot2duino

How to run

Using qemu:

qemu-system-x86_64 -drive file=boot2duino-demo.ino.x86-pc.img,index=0,if=floppy,format=raw -soundhw pcspk

Troubleshooting

  1. Install an x86 compiler
  2. Try upgrading your Arduino IDE
  3. Windows is not very well supported, give Linux a try
  4. Upgrade GCC to 11 (see this issue and this)

About

The World's Most Useless Arduino Platform.

License:BSD Zero Clause License


Languages

Language:Assembly 42.9%Language:C++ 41.2%Language:C 15.8%