Comments (1)
Hi @woronin
This is not a bug. I explain the current operation and the different possibilities:
- Snap! (and then Snap4Arduino) decided not to execute generic javascript code without the user's permission, to prevent bad practices (especially considering the execution of projects that are made directly from the web, to test them, without seeing the code or knowing who has done). And yes, this happened at version 7.
But you only have to go to Snap4Arduino settings menu, and click to allow "Javascript extensions". And that's all.
- If you want to avoid this requeriment (having to enable the extensions each time) you still have two options:
2.1 You have libraries that have this "ping" block implemented. I use SA5Firmata, and then, this SA5Firmata library has this block (and others: tone, pulses, nunchuck and dht11). You can use that "ping" block or you can use the generic "pulseIn" block to build your own.
2.2 If you use another Firmata code to implement this ping option, you can take a look at the Snap4Arduino "primitives" because we set different "general used options" to allow these "javascript known code" without extensions. These functions are at https://github.com/bromagosa/Snap4Arduino/blob/master/src/s4a/extensions.js#L117-L215
That's all.
I close this issue, but you continue if needed with questions or suggestions.
Joan
from snap4arduino.
Related Issues (20)
- Snap4Arduino projects stopped saving HOT 3
- Logo usage HOT 2
- Snap4Arduino, cannot connect to arduino HOT 3
- cannot conect it HOT 3
- NWJS Quit unexpectedly HOT 2
- Snap4Arduino7 on windows with COMxx (greater than 9) HOT 1
- Can't login to snap cloud HOT 3
- Build on master / tag 7.0.4 is broken because of nw-builder HOT 1
- HiS4A not working on an Android 10 device HOT 1
- iMac Sanp4arduino failed to run HOT 6
- Issue with nwjs HOT 3
- Error generate from source HOT 3
- The digital reading bricks do not work anymore. HOT 11
- Dependency management with npm HOT 2
- S4A icon not shown in taskbar and explorer and ... HOT 3
- Font size too small & painful for study without option to increase it HOT 3
- Translatable Projects Broken Since 6.2 HOT 2
- Variadic blocks fail to translate
- getting esp8266 NodeMCU to work over USB? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snap4arduino.