An open-source emulator for small OLED displays that are often used for Arduino/IOT projects.

Overview

SSD1306 OLED Emulator

An open-source emulator for small OLED displays that are often used for Arduino/IOT projects.

This project is still in an alpha build so it may be a little unstable.

Table of contents

  1. Who is this for?
  2. How to use
  3. Compiling from source
  4. Coming soon

Who is this for?

Anyone wanting to see how their device would interact with an OLED display without having one on hand!

My inspiration for the project came from working on an IOT project and, halfway through, realizing I didn't have the display I thought I did. This bugged me as I have a computer 100x more powerful than the Arduino I was working with, and a nice monitor - why couldn't I just send and render the data that would have gone to the small OLED display to my computer and render it there instead? ... turns out you can!

So if you don't have an OLED display, or just can't be bothered to find it, this emulator enables you to still run your program and see what the display would render!

How to use

Step 1

Download the executable directly from the builds folder here. Windows is only supported at the moment

Step 2

In your Arduino IDE, download the Adafruit SSD1306 EMULATOR library

image

Step 3

Replace all occurrences of #include <Adafruit_SSD1306> with #include <Adafruit_SSD1306_EMULATOR> in your Arduino IDE file. Make sure to swap out all uses of the Adafruit_SSD1306 type with Adafruit_SSD1306_EMULATOR as well.

//#include <Adafruit_SSD1306.h>
#include <Adafruit_SSD1306_EMULATOR.h>
//Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
Adafruit_SSD1306_EMULATOR display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

Step 4

Set the baud rate in your Arduino IDE to 9600

Step 5

Flash the updated file onto your microcontroller

Step 6

Run the display emulator executable downloaded in step 1 and pick the serial port your Arduino is connected to

image

Step 7 (Optional)

Reset your Arduino to sync the emulator and your device. The emulator will sync up on its own but may take a few frames.

image

Compiling from source

With Rust installed, this is as easy as cloning this repo and running cargo run in the cloned directory.

Coming soon!

As this is still an early alpha build there are a few features that are still in the works:

  • Test coverage: yeah, I know. I'll hand myself over to the TDD police.
  • Scrolling: surprisingly fiddly to implement, but halfway there
  • General stability: there are a few small things that currently crash the emulator, but should be recoverable instead.
You might also like...
NES emulator written in Rust

sprocketnes is an emulator for the Nintendo Entertainment System written in the Rust programming language. Its purpose is to serve as a technology dem

NES emulator in rust
NES emulator in rust

NES emulator in Rust plastic is a NES emulator built from scratch using Rust. This is a personal project for fun and to experience emulating hardware

ZX Spectrum emulator written in Rust
ZX Spectrum emulator written in Rust

rustzx ZX Spectrum emulator which I writing in rust. I develop this project just for fun and for learning the basics of computer architecture. License

R.A.Z.E. A ZX Spectrum Emulator

R.A.Z.E. A ZX Spectrum emulator This project is part of a friendly competition to build an emulator using Rust and WebAssembly. Check the live version

Rustual Boy - A Virtual Boy emulator.
Rustual Boy - A Virtual Boy emulator.

Rustual Boy Description Rustual Boy is a Virtual Boy emulator. It can be used to play existing Virtual Boy games, as well as be a helpful development/

Intel 8080 cpu emulator by Rust
Intel 8080 cpu emulator by Rust

i8080 i8080 is a emulator for Intel 8080 cpu. 8080 Programmers Manual 8080 opcodes [dependencies] i8080 = { git = "https://github.com/mohanson/i8080"

TestSuite4 is a framework designed to simplify development and testing of TON Contracts. It includes light-weight emulator of blockchain making it easy to develop contracts.

TestSuite4 0.1.2 TestSuite4 is a framework designed to simplify development and testing of TON Contracts. It contains lightweight blockchain emulator

Learn emulator and programming languages, target chip8, nes, gbc, gba ...
Learn emulator and programming languages, target chip8, nes, gbc, gba ...

[WIP]learn emulator go-chip8 go run main.go source https://en.wikipedia.org/wiki/CHIP-8 http://devernay.free.fr/hacks/chip8/C8TECH10.HTM https://githu

CHIP-8 emulator written in Rust
CHIP-8 emulator written in Rust

CHIP-8 emulator written in Rust. This is intended to be a project for gaining experience writing emulators and practice Rust.

Releases(alpha)
Owner
Sam Peach
Software Engineer at OneSignal
Sam Peach
Nes-emulator - A NES emulator made to learn the Rust programming language

nes-emulator Building $ rustc --version rustc 1.32.0 (9fda7c223 2019-01-16) $ cargo --version cargo 1.32.0 (8610973aa 2019-01-02) $ cargo build --rel

Michael Burge 225 Dec 23, 2022
Commodore 64 emulator written in Rust

Rust64 - a C64 emulator written in Rust This is my attempt to study the Rust programming language and have fun at the same time. The goal is to presen

Krzysztof Kondrak 214 Dec 27, 2022
A Flash Player emulator written in Rust

website | demo | nightly builds | wiki Ruffle Ruffle is an Adobe Flash Player emulator written in the Rust programming language. Ruffle targets both t

Ruffle 11.2k Jan 8, 2023
A Game Boy research project and emulator written in Rust

Mooneye GB Mooneye GB is a Game Boy research project and emulator written in Rust. The main goals of this project are accuracy and documentation. Some

Joonas Javanainen 802 Dec 28, 2022
A Gameboy Emulator in Rust

RBoy A Gameboy Color Emulator written in Rust Implemented CPU All instructions correct All timings correct Double speed mode GPU Normal mode Color mod

Mathijs van de Nes 512 Dec 23, 2022
RGB (Rust Game Boy) is a simple emulator for the original game boy

RGB RGB (Rust Game Boy) is a simple emulator for the original game boy and the color game boy. Warning: This no longer compiles in the latest versions

Niven Achenjang 18 Dec 2, 2022
Full featured Cross-platform GameBoy emulator by Rust. Forever boys!.

Gameboy Full featured Cross-platform GameBoy emulator. Forever boys!. You can start a game with the following command, here with a built-in game "Boxe

Mohanson 1.2k Jan 2, 2023
RustBoyAdvance-NG is a Nintendo™ Game Boy Advance emulator and debugger, written in the rust programming language.

RustBoyAdvance-NG Nintendo GameBoy Advance ™ emulator and debugger, written in rust. WebAssembly Demo: https://michelhe.github.io/rustboyadvance-ng/ P

MishMish 510 Dec 30, 2022
NES emulator written in Rust to learn Rust

OxideNES A NES emulator in Rust. CPU should be accurate, PPU is mostly accurate, timing between the 2 is off for some corner cases and hardware qui

null 37 Nov 7, 2022
An NES emulator written in Rust

Pinky Pinky is an NES emulator written in Rust completely from scratch based only on publicly available documentation. You can run it in your Web brow

Koute 709 Dec 23, 2022