Giter Club home page Giter Club logo

Comments (5)

microbit-carlos avatar microbit-carlos commented on August 16, 2024

Hi @petulino777, I've moved your comment to a new thread, as I think it's a different issue than #55.

Could you explain what hex file are you trying to load into what editor?
A hex file from the Python Editor (https://python.microbit.org) will only load in the Python Editor, and a MakeCode (https://makecode.microbit.org/) hex file will only load in MakeCode.

from pythoneditor.

petulino777 avatar petulino777 commented on August 16, 2024

Hello, I am only an older hobby programmer playing with a micro-bit. Sorry for my bad English.
And I just want to keep my little programs somewhere, especially if I switch computers.
I've been doing these operations without any client on my computer, just through the chrome browser, and that's how I want to keep using it for the time being.
GitHub apparently (at least when uploading/downloading via the browser) treats micro-bit HEX files as text files and modifies them.
I have found one SOLUTION when using GitHub using only the browser:
Before uploading the first HEX file to a repository, just upload (also via browser) a file named .gitignore to that repository.
Its content - one line: *.hex

And then I can add the files downloaded from the repository to MakeCode Web Editor via Import file via the browser and it works!
Please close this Issue. Thanks for the help and sorry to have kept you busy here.
Peter

from pythoneditor.

microbit-carlos avatar microbit-carlos commented on August 16, 2024

GitHub apparently (at least when uploading/downloading via the browser) treats micro-bit HEX files as text files and modifies them.

To better understand your workflow, are you adding hex files to a GitHub repository and then downloading them? How? using the GitHub website, cloning the repository somewhere else, or some other method?
Do you have an example of a hex file uploaded to GitHub that is modified by GitHub?

from pythoneditor.

petulino777 avatar petulino777 commented on August 16, 2024

Hi Carlos, I use only the browser to work with github.com My workflow: on the notebook nr. 1 I upload per chrome browser my visual block program - HEX file. On the notebook nr.2 I download this HEX file, again with the chrome browser. I open the web page makecode.microbit.org and then I try -> Import File... and after selecting and opening the HEX file it will be short displayed: "Sorry, we could not recognize this file". It means that the uploaded file on notebook nr.1 and the file downloaded on the notebook nr.2 is not the same - the fc/b showed that the files are different. But after uploading the .gitignore file its all OK. I get the same file on the another notebook (and Import OK). i think, the github thinks that the HEX file is a text file and makes some processing at upload on them. I have the solution for me, thanks for your attention and help.

from pythoneditor.

microbit-carlos avatar microbit-carlos commented on August 16, 2024

Okay, thanks for sharing the workflow and solution!
I'll close this as resolved then 👍

from pythoneditor.

Related Issues (20)

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.