Giter Club home page Giter Club logo

sci-calc's Introduction

sci-calc

Overview

The sci-calc (I know, really creative name) is a 4-in-1 device, packing a scientific calculator, a macropad/numpad, a handheld game console, and a development board all into one neat and sleek little device.

Specs

  • Powered by an ESP32 WROOM32 E datasheet
  • Switches: kailh v1 choc switches
  • Screen: 256x64 monochrome oled (display driver: SSD1322)
  • Usb to serial chip: CH340C driver download
  • Battery: any lipo battery under 1000mah would be fine
  • SD card support (must be in FAT32 format)

Function Keys

  • Switch layer key: switches between different layout configurations
    • hold to switch to next layer, release to go back (like shift)
    • double press to switch to next layer and lock (like caps lock)
  • deg/rad: used in the calculator program to switch between degree mode and radian mode
  • tab: also used in the calculator program, it's used to switch between the input box and the list of previous calculations

UI

Calculator

A calculator with a history clipboard that can do basic arithmetic (add, subtract, multiply, divide, powers), as well as trigonmetric functions, natural logrithms and exponents. Equation solver and derivative calculator will come soon.

layout (might change):

keyboard-layout

when inputting expressions, switch layer is needed to move the cursor left or right, whereas in the history menu(and all of the other menus), holding switch layer is not necessary to use the arrow keys. when in the history menu, use the arrow keys to navigate up/down, and press enter to copy the selected expression's answer to the input box.

video demo

1465_1676787860.mp4

Macropad

A bluetooth numpad that comes with 10 customizable macro keys, though all keys can be customized, only the 10 keys on the 2 rightmost rows can be displayed on the screen. Macros and layers are very easy to create in code (see firmware), and I'm planning to make it possible to change and edit the layout via a text file in the SD card.

video demo

1466_1676787881.mp4

Programs

It is possible to upload your own code to the sci-calc by copying the .bin file that you compiled onto the SD card and creating a menu link to it in the main firmware code (see firmware), but this is kinda complicated and I'm trying to make it automatically create the link. It's pretty easy to port code over to the sci-calc, just copy the Util.h, Util.cpp, Keyboard.h, Keyboard.cpp files over to your project and change the input checking functions. Currently I've ported littlerookchess, spacetrash, snake, and tetris to it.

LittleRookChess

image

https://github.com/olikraus/u8g2/blob/master/sys/arduino/u8g2_page_buffer/LittleRookChess/LittleRookChess.ino

Spacetrash

image

https://github.com/olikraus/u8g2/blob/master/sys/arduino/u8g2_page_buffer/SpaceTrash/SpaceTrash.ino

Snake

image

https://github.com/norbertg1/Snake-game

Tetris

image

https://github.com/Zimoslaw/TetriZimoslaw

sci-calc's People

Contributors

shaoxiongduan avatar

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.