Giter VIP home page Giter VIP logo

craftos-pico's Introduction

craftos-pico

A ComputerCraft 1.8 emulator built for the Raspberry Pi Pico. Uses VGA or serial for screen output. Based on craftos-native.

Requirements

  • Raspberry Pi Pico
  • USB OTG adapter for keyboard and/or storage
  • One of:
  • If not using a demo board or USB storage, an SD card breakout connected over SPI

Building

To build, you must have the Raspberry Pi Pico SDK, including cmake.

TODO: Figure out configuration options for VGA/Serial, USB/SD, etc.

patch -p1 craftos2-lua < craftos2-lua.patch
mkdir build
cd build
cmake -DPICO_SDK_PATH=<path to pico-sdk> ..
cmake --build .

Running

Simply plug in the Pico while holding BOOTSEL, drop the built UF2 file onto the new USB drive, and the Pico will reboot into CraftOS automatically.

craftos-pico's People

Contributors

mcjack123 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

craftos-pico's Issues

unable to build

[ 67%] Building ASM object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/src/rp2_common/pico_standard_link/crt0.S.obj [ 69%] Building CXX object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/src/rp2_common/pico_standard_link/new_delete.cpp.obj cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ [ 70%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/src/rp2_common/pico_standard_link/binary_info.c.obj [ 71%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/src/rp2_common/pico_stdio/stdio.c.obj [ 73%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/src/rp2_common/pico_stdio_uart/stdio_uart.c.obj [ 74%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/src/rp2_common/pico_multicore/multicore.c.obj [ 75%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040/hcd_rp2040.c.obj [ 76%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040/rp2040_usb.c.obj [ 78%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/host/usbh.c.obj [ 79%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/host/hub.c.obj [ 80%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/class/cdc/cdc_host.c.obj [ 82%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/class/hid/hid_host.c.obj [ 83%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/class/msc/msc_host.c.obj [ 84%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/class/vendor/vendor_host.c.obj [ 85%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/tusb.c.obj [ 87%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/src/common/tusb_fifo.c.obj [ 88%] Building C object CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/lib/tinyusb/hw/bsp/rp2040/family.c.obj [ 89%] Linking CXX executable craftos.elf /usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/craftos.dir/home/ubuntu/pico-sdk/src/rp2_common/pico_standard_link/crt0.S.obj: in function hold_non_core0_in_bootrom':
(.reset+0x94): undefined reference to main' collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/craftos.dir/build.make:856: craftos.elf] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:1788: CMakeFiles/craftos.dir/all] Error 2 gmake: *** [Makefile:103: all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.