Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulator and Blockly Update #371

Open
wants to merge 55 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
ac0ad4d
feat: initial generator split
felixerdy Nov 19, 2024
0d9b217
feat: add simulator code actions
felixerdy Nov 19, 2024
cf447dc
chore: add .vscode/settings.json
felixerdy Nov 19, 2024
db1db41
feat: initial simulator actions and reducer
felixerdy Nov 19, 2024
e196c4f
feat: update webpack config without ejecting
felixerdy Nov 19, 2024
3a721d1
feat: stop simulator
felixerdy Nov 20, 2024
1816e9f
feat: loop code
felixerdy Nov 20, 2024
fe3351e
feat: initial display and temperature simulation
felixerdy Nov 20, 2024
dba6d4d
feat(simulator): add neopixel
felixerdy Nov 22, 2024
78ab1c9
feat(simulator): list used modules
felixerdy Nov 22, 2024
0a00474
feat(simulator): visualize simulator using react flow
felixerdy Nov 22, 2024
f36ba3a
feat: initial blockly update
felixerdy Nov 25, 2024
4a46558
feat(simulator): elapsed simulation time
felixerdy Nov 25, 2024
171ae28
fix(simulator): module extraction
felixerdy Nov 27, 2024
3d29fd1
feat(simulator): split simulator code
felixerdy Nov 27, 2024
bc4784a
feat(simulator): fit view on nodes change
felixerdy Nov 27, 2024
2084ed7
feat: controlled accordion and simulator chip
felixerdy Nov 27, 2024
06a9c0d
change I2C address of VL53L8CX first
PaulaScharf Nov 14, 2024
ec77b2e
preSetupCode
PaulaScharf Nov 22, 2024
2f523c0
dont give negative distances
PaulaScharf Nov 25, 2024
8de2f57
only use 1MHz I2C vor vl53l8cx not for other sensors
PaulaScharf Nov 25, 2024
7f167d0
only use target status 5, 6 or 9
PaulaScharf Nov 25, 2024
bc1c67d
updated target_status and I2C clock for bitmap generation too
PaulaScharf Nov 25, 2024
4da0574
single negativ block, better Tooltip links, deacrease variable, fix t…
BjoernLuig Dec 17, 2024
9f2adfe
fix language (update), tooltips and compiling math bugs
BjoernLuig Dec 30, 2024
d698a22
add note on workaraung with settooltip
BjoernLuig Jan 6, 2025
503d63a
make compiler interchangable, closes #357
Jan 10, 2025
c6182e9
initial compiler as env variable
Jan 10, 2025
351118a
rename env variable
Jan 21, 2025
83d9817
fix error raised by #368
Jan 10, 2025
5a5ce68
provide board information to connect app
Oct 10, 2024
5397980
exclude OTA on MCU-S2
mpfeil Oct 28, 2024
3ebb255
feat: read library list from compiler api
felixerdy Dec 20, 2024
4ed6c1b
update hint box links
Jan 10, 2025
c0bf250
fixed hitn button and styled a bit
Jan 10, 2025
13fd708
translation fixes
Jan 21, 2025
b3e8db1
adjust border radius and background
Jan 21, 2025
ac2035b
slightly adjust padding
Jan 21, 2025
170e6c7
improve readme
georgi-s Jan 28, 2025
da5e13b
improve readme
georgi-s Jan 28, 2025
5b72941
delete the german version of the readme and fix the documentation links
georgi-s Jan 28, 2025
3b54f0a
Revert "Feat/improve readme"
Thiemann96 Jan 28, 2025
ae02390
Update README.md
Thiemann96 Feb 5, 2025
915b39f
add custom bitmap support
Jan 10, 2025
393f4e9
some small fixes
Jan 10, 2025
6086d66
add check for empty and remove commented out code
Jan 10, 2025
f7c785e
remove comments from example
Jan 21, 2025
3810aba
add names to custom bitmaps, now multiple custom bitmaps possible
Jan 21, 2025
b9236be
now object parathentesisis get added automatically
Jan 21, 2025
e0315e6
feat: add full color block
mariopesch Jan 30, 2025
62ca3a3
limit the brightness to 40
Feb 5, 2025
6a7204c
updated english hint urls
Feb 13, 2025
b145a1f
add english led matrix
Feb 13, 2025
1abcf8b
packagelock
Feb 13, 2025
25f59d2
yarn lock touchee
Feb 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REACT_APP_COMPILER_URL=https://compiler.sensebox.de
REACT_APP_INITIAL_COMPILER_URL=https://compiler.sensebox.de
REACT_APP_BOARD=sensebox-mcu
REACT_APP_BLOCKLY_API=https://api.blockly.sensebox.de

Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
52 changes: 49 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,57 @@ This project was created with [Create React App](https://github.com/facebook/cre

4. open [localhost:3000](http://localhost:3000)

## Troubleshoot
## 🔧 Configuration

Ensure that line 14 in [store.js](https://github.com/sensebox/React-Ardublockly/blob/master/src/store.js#L14) is commented out or otherwise you have installed [Redux DevTools Extension](http://extension.remotedev.io/).
### Board Selection

## Demo
- **senseBox MCU**: Standard board with Arduino compatibility
- **senseBox MCU-S2**: ESP32-based board with extended functionality

### Compiler Settings

The compiler URL can be configured in the `.env` file:

```
REACT_APP_COMPILER_URL=https://compiler.sensebox.de
```

## 📝 Development Guidelines

### Code Style

- We use [Prettier](https://prettier.io) for consistent formatting
- Configuration in `.prettierrc.json`
- ESLint for JavaScript/React best practices

### Branching Strategy

If you want to contribute **please use the development branch** ! The main branch is only used for production and may be outdated!

- `main`: Production branch
- `development`: Development branch
- Feature branches: `feature/name-of-feature`
- Bugfix branches: `bugfix/name-of-bug`

## 🤝 Contributing

1. Create a fork
2. Create feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit changes (`git commit -m '[Area] Add amazing feature'`)
4. Push branch (`git push origin feature/AmazingFeature`)
5. Create Pull Request

## 🐛 Known Issues

- Redux DevTools must be installed or the corresponding line in `store.js` must be commented out
- Some boards require special drivers for USB connection

## 📚 Documentation

- [User Manual](https://docs.sensebox.de/docs/category/blockly-2)
- [Hardware-Glossar](https://docs.sensebox.de/docs/category/glossar)

## 🌐 Demo

A demo of the current status of the master branch can be accessed via [https://blockly-react.netlify.app/](https://blockly-react.netlify.app/) :rocket:.

Expand Down
15 changes: 15 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* config-overrides.js */

module.exports = function override(config, env) {
//do stuff with the webpack config...
return {
...config,
resolve: {
...config.resolve,
fallback: {
...config.resolve.fallback,
vm: require.resolve("vm-browserify"),
},
},
};
};
Loading