Basics
Welcome
Congratulations on taking the first step to become a MagiScript programmer! MagiScript Editor is a platform where you can edit and upload your own mini-apps.
Please note that Atom can be connected to multiple devices simultaneously. While developing your mini-app, you can also keep it connected to an app on your phone.
Requirements:
- A desktop or laptop machine running Chrome, Edge browser with Bluetooth connectivity. These days most laptops have built-in Bluetooth, while for a (Windows) desktop you might need to buy a Bluetooth dongle. Chrome on Android might work, but the editor screen is not optimized for mobile.
- Atom, our intelligent remote that can run MagiScript.
How to Connect?
On the https://peeksmith.electricks.info/atom/ page click the “Connect Atom” button, and a window will pop up showing all available devices. Select the desired device and click the “Pair” button.
You might see a window prompting you to pair your device. If you want to use Atom as a keyboard with your computer, select “Connect.” If not, choose “Cancel.” We recommend selecting “Cancel” and testing or developing the Bluetooth keyboard mini-app using your phone instead.
The MagiScript Editor also allows you to install the latest Atom firmware. If a new firmware release is available, an update window will appear.
Layout
After connecting to your device, you will see the following sections:
Toolbar
- App Store: load example mini-apps
- New: start with an “empty” mini-app
- Load: load a mini-app from a file
- Save: save a mini-app to a file
- Compile & Upload: upload the mini-app you are developing to Atom
- Persist: save the mini-app to Atom’s storage, it becomes selectable in the launcher
- List of Mini-Apps: manage the mini-apps available on your Atom device (built-ins and the mini-apps you persisted)
- Settings: several settings of your device
Console Logs
System messages will appear here, and you can also send messages from the Magiscript application with the console.log
command.
Atom Commands
You can enter special commands here, which will be sent to Atom as Bluetooth messages. In most cases, you won’t need to use this feature.
Footer
Here you can see the current app, a message, the devices connected and the battery level percentage of Atom.
General
๐ย First Steps
MagiScript Editor
๐ย Basics
๐ย Running Your First Program
๐ย App Store
๐ย Atom Settings (Editor)
๐ย Debugging Techniques
Examples
๐ย Atom Time
๐๏ธ Time Practice
๐ย Atom Pi (Pi Revelations)
๐ย Atom Drum
๐๏ธ Atom Stack
๐ย Atom Square
๐ย Atom Level
๐ย Atom THMPR
๐ย Poker Hands
๐ย Keyboard Numeric
๐ย Keyboard NOKIA
๐ย Keyboard Cursor
๐ย Keyboard Media
๐ย Keyboard Custom
Input/Output
๐ย Buttons
๐ย Vibration Motor
๐ย RGB LED
๐ย Devices
๐ย PeekSmith
๐ย SB Watch
๐ย Bluetooth Keyboard
๐ย Bluetooth Mouse
๐ย Timers
๐ย Database
๐ย Events
๐ย System (exit, sleep, rand)
๐ย Objects (card, time)
Language
๐ย Summary
๐ย Comments
๐ย Variable Declarations
๐ย Operators
๐ย Control Flow
๐ย Functions
๐ย Numbers
๐ย Strings
๐ย Arrays
๐ย Objects
๐ย Uint8Array