Giter Site home page Giter Site logo

esc's Introduction

Configuring Visual Studio Code IDE to run with Particle Photon https://www.hackster.io/gusgonnet/use-visual-studio-code-for-your-particle-development-needs-9e23bc

  1. Update particle IDE https://binaries.particle.io/cli/installer/windows/ParticleCLISetup.exe npm install -g particle-cli

  2. Download/install VS Code a. Install from https://code.visualstudio.com/ b. Execute from command line providing proect path: $ code /home/gustavo/myParticleProject This can also be done from File menu of VS IDE c. Install C/C++ Extension from Getting Started of https://code.visualstudio.com/docs/languages/cpp d. Configure the c_cpp_properties.json file following instruction from same place of previous line browse to a .cpp file that has a #include. You will see squiggly green line underneath. Click on the text that is undelined. click the lightbulb that appears. Click "Add include path to settings" e. Generate a tasks.json file following instructions same place open Command Palette (ctrl-shift-P) select Tasks: Configure Task Runner select Others Change "command" to the cmd line expression used to build "" In the tasks.json (.vscode folder in MYWINDCODE) make it look like following (for usb flashing) { "version": "0.1.0", "command": "particle", "isShellCommand": true, "args": [], "showOutput": "always", "echoCommand": true, "tasks": [ { "taskName": "compile", "suppressTaskName": false, "isBuildCommand": true, "args": ["photon", "${workspaceRoot}", "--saveTo", "${workspaceRoot}/firmware.bin"]
    }, { "taskName": "flash",
    "suppressTaskName": false, "isTestCommand": true, "args": ["--usb", "firmware.bin"] }
    ]
    }

    f. Format your code by right-click - Format Code g. Build by ctrl-shift-B h. Flash by ctrl-P, task - - Photon must be blinking yellow by pushing both buttons simultaneously, releasing RESET, wait for purple then yellow

  3.   If compile in DEV and no status message returned, probably are not connected to wifi.  Particle-DEV does not work over GE network.
    
  4.   Wifi connection problems at work usually fixed by changing Odyssey from BLUESSO to Internet.   Particle-DEV does not work over GE network.
    
  5.   Photon does not connect for flash:   need to get closer to Internet wifi.   Photon wifi a little weak.
    
  6.   Coolterm “Port not found.”  Photon USB not visible.  Restart Coolterm.   Unplug Photon USB and replug.   Rescan ports in Coolterm-Connection-Options.   Prevent this by disconnecting CoolTerm before servicing Photon.
    
  7.   Red error window pops in DEV.  Restart DEV.
    

Compile Photon. - use MS Visual Studio IDE - ctr-Shift-B #to build - ctrl-P task flash #to flash Communicate with photon real time - Cool Term - Connection - Send String b # bare photon toggle t # close loop with model toggle c # closed loop toggle P 20 # request potThrottle 20 deg, open or closed work V # run VECT toggle R # run RAMP toggle f # run freq resp toggle

esc's People

Contributors

davegutz avatar

Watchers

James Cloos avatar  avatar  avatar

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.