keywish / keywish-hummer-bot-v2.0

6 stars 11 forks source link

Code Broken #1

Open presider opened 5 years ago

presider commented 5 years ago

codes not work...

schnapper79 commented 5 years ago

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 :smiling_imp:

vladvvl514 commented 7 months ago

Я попробую использовать скретч-библиотеку (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, я смог скомпилировать код.

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

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

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