An open API service indexing awesome lists of open source software.

https://github.com/a35hie/smolc

Write C and Arduino functions at the speed of very fast.
https://github.com/a35hie/smolc

arduino c cpp espanso espanso-package text-expansion

Last synced: 3 months ago
JSON representation

Write C and Arduino functions at the speed of very fast.

Awesome Lists containing this project

README

          

# SmolC
Write C and Arduino functions at the speed of very fast.
**SmolC** is a ✨tiny but mighty✨ text expansion package for writing C and Arduino code **at the speed of light**.
It's designed for devs who want to skip the finger gymnastics and get straight to the slay 💅

Made for use with [Espanso](https://espanso.org) – the ultimate open-source text expander.

## ✨ Features
- Speed up your Arduino/C workflows with cute shorthand triggers
- Auto-inserts semicolons and cursor positions `` for smooth typing
- Clean, readable expansions that map 1:1 to common Arduino/C++ APIs
- Slayfully minimal — no bloat, just *fast fingers and fab code*

## 🧪 Example Triggers

| Trigger | Expands to |
|---------|-----------------------|
| `sP(` | `Serial.print();` |
| `sPL(` | `Serial.println();` |
| `aR(` | `analogRead();` |
| `dW(` | `digitalWrite();` |
| `pM(` | `pinMode();` |
| `mS` | `millis()` |
| `vS` | `void setup() {\n\n}` |
| `cxB` | `constexpr bool ;` |
| `rV(` | `return ;` |
| `brk;` | `break;` |

> ✨ More expansions are available — check out `package.yml` for the full glow-up.

## 🛠️ Installation/Updating
#### Automatic
If you're on Linux/macOS, simply run this command:
```bash
bash <(curl -s https://raw.githubusercontent.com/asboy2035/SmolC/refs/heads/master/install.sh)
```
It will check for installed versions and updates, and do the most appropriate actions.

#### Manual
1. Clone or download this repo
2. Move it to your Espanso packages folder using your file manager or the command line:

```bash
# Example path on Linux/macOS
~/.config/espanso/packages/smolc
```