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

Code Broken #1

Open
presider opened this issue Apr 13, 2019 · 2 comments
Open

Code Broken #1

presider opened this issue Apr 13, 2019 · 2 comments

Comments

@presider
Copy link

codes not work...

@schnapper79
Copy link

I tried to use the scratch library (mblock) from this repository.

Problem 1) JSON in Zip-Archive (Hummerbot.s2e - File) is invalid and broken
after fixing the JSON - Errors I was able to include it into my mblock - installation.

Problem 2) Invalid code is generated: For example the Block "hummerbot Programm" adds an #include "KeyMap.h" - line which looks good at first glance. Only failure: the File is called "Keymap.h".

Oh, btw... For whatever reason mblock can't compile directly for Arduino as it says: "no sketch file found at this place". But you can open Arduino-IDE from mblock and you can edit your code there. Great.

Except Arduino IDE doesn't find the libraries... but I am not sure if that's a Problem with YOUR code or with mblock.

After I made an own Arduino - Library with the libraries from your ZIP File and fixing all filenames and JSON I was able to get the code compiled.

I was NOT able to test the hummerbot itself yet as I was busy fixing YOUR stuff

For a lifetime supply of Hummerbots and other stuff i might share my code with you to fix this repository 😈

@vladvvl514
Copy link

Я попробую использовать скретч-библиотеку (mblock) из этого репозитория.

Проблема 1) JSON в Zip-архиве (Hummerbot.s2e — файл) недействителен и поврежден после исправления ошибок JSON. Мне удалось включить его в установке mblock.

Проблема 2) Генерируется неверный код: например, блок «Программа Hummerbot» содержит текст #include «KeyMap.h», который на первый взгляд выглядит хорошо. Единственная неудача: файл называется «Keymap.h».

Да, кстати... По какой-то причине mblock не может скомпилировать напрямую для Arduino, поскольку говорит: «Здесь не найден файл эскиза». Но вы можете открыть Arduino-IDE из mblock и сохранить там свой код. Большой.

За исключением того, что Arduino IDE не находит библиотеки... но я не уверен, проблема ли это в коде ВАШЕМ или в mblock.

После того, как я создал собственную библиотеку Arduino с библиотеками из вашего ZIP-файла и исправил все имена файлов и JSON, я смог скомпилировать код.

Я еще НЕ смог протестировать самого робота-молотка, так как был занят ремонтом ВАШИХ вещей.

Чтобы получить пожизненный запас Хаммерботов и других вещей, я мог бы поделиться с вами своим кодом, чтобы исправить этот репозиторий 😈

Что именно нужно сделать чтобы все работало?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants