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

Upload hex file using Visual Basic app #49

Open
mily1994 opened this issue Dec 27, 2019 · 2 comments
Open

Upload hex file using Visual Basic app #49

mily1994 opened this issue Dec 27, 2019 · 2 comments

Comments

@mily1994
Copy link

mily1994 commented Dec 27, 2019

Hi
I'm trying to create VB application which will upload hex file using ArduinoSketchUploader NuGet.
Here is my code:

**Public Sub Sketch_Uploader(sender As Object, e As EventArgs)
        Dim folderPath As String
        folderPath = "C:\Users\Milosz\Desktop\"
        Dim fileName As String
        fileName = "blink.hex"
        Dim fullPath As String
        fullPath = My.Computer.FileSystem.CombinePath(folderPath, fileName)
        Dim uploader As ArduinoSketchUploader = Nothing
        Dim options As ArduinoSketchUploaderOptions = Nothing
        options.ArduinoModel = Hardware.ArduinoModel.UnoR3
        options.FileName = fullPath
        options.PortName = "COM3"
        uploader.UploadSketch()
End Sub**

Code is being compliled but nothig happens. Do you have some idea what can be wrong with it or maybe it is not possible to do it using VB and i have to switch to C#.
I would be very grateful for any help.

@SuperNinja-4965
Copy link

Are your options actually being applied?
you have assigned the variable options your settings but i dont see where those settings are being given to the uploader variable.

@SuperNinja-4965
Copy link

SuperNinja-4965 commented Feb 1, 2020

Incase you are interested i am coding a gui for this uploader and can be found at https://github.com/SuperNinja-4965/Arduino-Hex-Uploader. i have not made a release yet so you will have to download and run the code yourself. It is coded in vb.net.

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

2 participants