Giter Club home page Giter Club logo

circuitblocks's People

Contributors

dependabot[bot] avatar doridugandzic avatar filipbudisa avatar robbie8-bit avatar zeko369 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

circuitblocks's Issues

error with trigonometry functions

When coding in blocks the trig functions convert angles specified in degrees in the block to angles in radians in the code. However the conversion factor is not correct. It should be: degreesPi/180, but the circuitblocks IDLE implements this as: degrees/180Pi. See attached script in the blocks and my correction in the code version.

Found this as just got the nibble for my kid and he wanted to create an animation to rotate a sprite. So we were using some basic trig (sin and cos) functions to describe co-ordinates around a circle and the thing was giving bizarre results. Bit lucky I spotted the conversion error in the code - was about to give it up!

Win10 64bit version of circuit blocks
Nibble

image

corrected code:
// cm:esp8266:nibble
#include <Arduino.h>
#include <CircuitOS.h>
#include <Nibble.h>

int x;
int y;
int rf;

Display* display;
Sprite* sprite;

void setup() {
Nibble.begin();
display = Nibble.getDisplay();
sprite = display->getBaseSprite();

}

void loop() {
x = 64;
y = 32;
rf = 15;
for (int count = 0; count < 24; count++) {
sprite->clear(TFT_WHITE);
sprite->drawCircle(64, 64, 32, TFT_GREEN);
sprite->fillCircle(x, y, 2, TFT_RED);
display->commit();
y = 32 * (1 - cos(rf * M_PI/ 180)) + 32;
x = 32 * sin(rf * M_PI/ 180) + 64;
rf = rf + 15;
delay(42);
}

}

Issue updating firmware from CircuitBlocks on macOS

macOS 13.4
CircuitBlocks 1.9.2

Pressing on Restore firmware throws out an error message
image
I have tested this with Wheelson and Jay-D
When connected to the computer, the serial port is shown cu.usbserial-14430/tty.usbserial-14430

nothing is shown on the device itself.
In the process, Jay-D blanks out the screen, but Wheelson doesn't even do that.

Please advise.

Windows 11 Sprite saving issues?

After creating a custom sprite and adding it to the Nibble project using the Display>Draw Sprite block, I am unable to save my project - neither with the save button nor the save&close dialog box. If I use a default sprite (e.g. tree1) it will let me save. Am I doing something wrong or is this potentially a bug with Windows 11 compatibility? Thanks!

Error Library update error. Please check your internet connection (Linux)

Hi,

I am trying to install CircuitBlocks on Linux Mint, but when starting and updating it seems a Yaml file cannot be found Error: Error: Cannot parse update info from latest-linux.yml in the latest release artifacts (https://repman.circuitmess.com/update/Linux/x64/1.7.3/latest-linux.yml?noCache=1g33p78ft): rawData: null

My internet connection definitely works

$ dig google.com

; <<>> DiG 9.16.1-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18287
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		258	IN	A	142.251.10.101
google.com.		258	IN	A	142.251.10.100
google.com.		258	IN	A	142.251.10.139
google.com.		258	IN	A	142.251.10.102
google.com.		258	IN	A	142.251.10.113
google.com.		258	IN	A	142.251.10.138

;; Query time: 24 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Sun May 15 19:05:43 WIB 2022
;; MSG SIZE  rcvd: 135

$ ping google.com
PING google.com (142.251.10.138) 56(84) bytes of data.
64 bytes from sd-in-f138.1e100.net (142.251.10.138): icmp_seq=1 ttl=106 time=7.20 ms
64 bytes from sd-in-f138.1e100.net (142.251.10.138): icmp_seq=2 ttl=106 time=3.86 ms
64 bytes from sd-in-f138.1e100.net (142.251.10.138): icmp_seq=3 ttl=106 time=7.85 ms
^C
--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 3.860/6.303/7.851/1.748 ms

Here is the whole dump:

$ circuitblocks 
Installing
ARDUINO
Adding desktop shortcut, menu item and file associations for Arduino IDE...


 done!


CLI
RINGO
RINGO
Library update error. Please check your internet connection.
Checking for update
Library update error. Please check your internet connection.
Checking for update (already in progress)
Error: Error: Cannot parse update info from latest-linux.yml in the latest release artifacts (https://repman.circuitmess.com/update/Linux/x64/1.7.3/latest-linux.yml?noCache=1g33p3pti): rawData: null
    at newError (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/index.js:212:17)
    at parseUpdateInfo (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/out/providers/Provider.js:127:46)
    at GenericProvider.getLatestVersion (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/out/providers/GenericProvider.js:57:48)
    at async AppImageUpdater.getUpdateInfoAndProvider (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:500:13)
    at async AppImageUpdater.doCheckForUpdates (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:516:20)
Installing
ARDUINO
Adding desktop shortcut, menu item and file associations for Arduino IDE...


 done!


CLI
RINGO
RINGO
Library update error. Please check your internet connection.
Checking for update
Library update error. Please check your internet connection.
Checking for update (already in progress)
Error: Error: Cannot parse update info from latest-linux.yml in the latest release artifacts (https://repman.circuitmess.com/update/Linux/x64/1.7.3/latest-linux.yml?noCache=1g33p78ft): rawData: null
    at newError (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/node_modules/builder-util-runtime/out/index.js:212:17)
    at parseUpdateInfo (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/out/providers/Provider.js:127:46)
    at GenericProvider.getLatestVersion (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/out/providers/GenericProvider.js:57:48)
    at async AppImageUpdater.getUpdateInfoAndProvider (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:500:13)
    at async AppImageUpdater.doCheckForUpdates (/opt/CircuitBlocks/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:516:20)

If I continue I cannot compile the sketch and get an error: Arduino daemon couldn't load. Please restart the app. If this problem persists, please reinstall CircuitBlocks.

image

image

Offline usage

In the current version of CircuitBlocks (I'm running 1.2.1 on Windows 10), the IDE fails to load if there's no network connection, as it fails at the update check and there's no way to continue. If the network connection is restored while the app is still open, and the update check is retried, it then fails with an error about failing to connect to the Arduino Daemon.

I think autoupdate could become an optional preference, or silently ignored if the network is not available - this would enable users to get started more smoothly.

yarn issue due to packagejson "sudo-prompt"

Since Text in Editor is too small i downloaded source to update UI and add some quality of life improvements in like font/text size ...

managed to install yarn, electron but have this strange issue when trying to install dependency pacakge
"sudo-prompt": "https://github.com/filipbudisa/sudo-prompt#add-env-to-options-type"

this is the error i get

Output: remote: Repository not found. fatal: repository 'https://github.com/filipbudisa/sudo-prompt/' not found

is this repo private? can i replace it with some other?
also, what is policy on accepting 3rd party pull requests on open source project?

Program can't launch due to glibc, on GNU/Linux

I tried to launch circuitblocks' AppImage on NixOS 20.09 but it didn't work. The standard error output gives me this :

A JavaScript error occurred in the main process
Uncaught Exception:
Error: /usr/lib/libc.so.6: version `GLIBC_2.32' not found (required by /tmp/.org.chromium.Chromium.BQVBDl)
    at process.func (electron/js2c/asar.js:140:31)
    at process.func [as dlopen] (electron/js2c/asar.js:140:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:922:18)
    at Object.func (electron/js2c/asar.js:140:31)
    at Object.func [as .node] (electron/js2c/asar.js:149:18)
    at Module.load (internal/modules/cjs/loader.js:735:32)
    at Module._load (internal/modules/cjs/loader.js:648:12)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:775:19)
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"

First, I thought it was owing to NixOS which is quite a special distribution so I checked it on an Ubuntu 18.04 with the AppImage binary as well but also with the .deb package file. And both two gave me the same error.

Usability: add tooltips to the toolbar buttons

I had to read the tutorial to understand that CircuitBlocks has a built-in serial console monitor, and that what turns out to be the "export binary" button is running a compile in the background (it popped open a "save as" dialog on Windows, so I assumed at first that it would enable me to save my sketch to a location of my choosing, not compile it.

I think adding tooltips across the buttons would make the tool much more intuitive!

More Details for Development Enviros

Is it possible to provide more details on setting up a development environment? I tried using Ubuntu and Electron and failed. I get Node mismatches when attempting to build.

Definition for rule '@typescript-eslint/no-angle-bracket-type-assertion' was not found

How to solve this problem?

client$ yarn build

yarn run v1.19.1
$ node scripts/build.js
Creating an optimized production build...
Failed to compile.

./src/layouts/Editor/components/Monaco.tsx
Line 1: Definition for rule '@typescript-eslint/no-angle-bracket-type-assertion' was not found @typescript-eslint/no-angle-bracket-type-assertion

Search for the keywords to learn more about each error.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Different issue on Chromebox attempted install of CircuitBlocks

I saw an issue posted earlier about not being able to load CircuitBlocks on a Linux VM with Chrome OS. I'm not real savvy with Linux, so not sure if this is a simple workaround or if its more complicated? Also not entirely sure how to get the Linux version details?

Also tried the other APP, but could not find a way to run that as an .EXE, but will keep looking. I have other options I can use, but this is the best computer for my kids to work on.

sudo dpkg -i /mnt/chromeos/MyFiles/Downloads/CircuitBlocks-1.7.1-Linux_x64.deb
(Reading database ... 34672 files and directories currently installed.)
Preparing to unpack .../CircuitBlocks-1.7.1-Linux_x64.deb ...
Unpacking circuitblocks (1.7.1) over (1.7.1) ...
dpkg: dependency problems prevent configuration of circuitblocks:
 circuitblocks depends on libnotify4; however:
  Package libnotify4 is not installed.
 circuitblocks depends on libnss3; however:
  Package libnss3 is not installed.
 circuitblocks depends on libappindicator3-1; however:
  Package libappindicator3-1 is not installed.
 circuitblocks depends on libsecret-1-0; however:
  Package libsecret-1-0 is not installed.

dpkg: error processing package circuitblocks (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 circuitblocks

Arduino daemon still loading. Please wait a bit and then try again. (macOS)

Hi,

I cannot compile the sketch in CircuitBlocks on macOS 11.6.5 (20G527).

Wheelson is connected, I am using the latest version of Circuitblocks (1.7.3) but always getting the same error "Arduino daemon still loading. Please wait a bit and then try again.".

I uninstalled Circuitblocks, tried installing an older version (1.7.1) but it anyway auto-updates, I rebooted my Mac, but always same error message.

Wheelson is working, as we are able to configure it on a Windows PC, but I need to get it run on macOS.

Any advice?

image

image

Crash on MacOS Catalina

Hi,
CircuitBlock V1.1.0 is crashing on my Macbook Pro :

Model Name: MacBook Pro
Model Identifier: MacBookPro16,1
Processor Name: 6-Core Intel Core i7
Processor Speed: 2,6 GHz
Number of Processors: 1
Total Number of Cores: 6
L2 Cache (per Core): 256 KB
L3 Cache: 12 MB
Hyper-Threading Technology: Enabled
Memory: 16 GB
Boot ROM Version: 1037.147.1.0.0 (iBridge: 17.16.16065.0.0,0)

Here's the crash report (happens immediately on startup) :

Uncaught Exception:
Error: dlopen(/var/folders/pq/wgydqswj47g8_0cgrf12zvwh0000gn/T/.com.circuitmess.circuitblocks.B9JAUg, 1): no suitable image found. Did find:
/var/folders/pq/wgydqswj47g8_0cgrf12zvwh0000gn/T/.com.circuitmess.circuitblocks.B9JAUg: code signature in (/var/folders/pq/wgydqswj47g8_0cgrf12zvwh0000gn/T/.com.circuitmess.circuitblocks.B9JAUg) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
/var/folders/pq/wgydqswj47g8_0cgrf12zvwh0000gn/T/.com.circuitmess.circuitblocks.B9JAUg: stat() failed with errno=17
at process.func (electron/js2c/asar.js:138:31)
at process.func [as dlopen] (electron/js2c/asar.js:138:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
at Object.func (electron/js2c/asar.js:138:31)
at Object.func [as .node] (electron/js2c/asar.js:147:18)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at bindings (/Applications/CircuitBlocks.app/Contents/Resources/app.asar/node_modules/bindings/bindings.js:112:48)

Don't hesitate if you need more info !

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.