Visual Studio Express For Mac Os



Visual Studio 2017 for Mac will install and run on the following operating systems: macOS Sierra 10.12: Community, Professional, and Enterprise. Mac OS X El Capitan. Visual Studio (free Community edition - since 2015) is a simplified version of the full version and replaces the separated express editions used before 2015. Visual Studio Code (VSCode) is a cross-platform (Linux, Mac OS, Windows) editor that can be extended with plugins to your needs.

Make without limit! Device Simulator Express, a Microsoft Garage project, allows you to code microcontrollers without the hardware on hand! You can program your Adafruit Circuit Playground Express (CPX), your BBC micro:bit or the Adafruit CLUE! Test and debug your code on the device simulator and see the sameresult when you plug in your actual microcontroller. Curious about the output of the device, the serialmonitor allows you to observe the device output.

Table of Contents

  • Adafruit Circuit Playground Express (CPX) Simulator
  • BBC micro:bit Simulator
  • Adafruit CLUE Simulator
  • How to use

Devices we support

Prerequisites

The following dependencies are required to install before launching Device Simulator Express.
You will be prompted to install the Python dependencies during the first use.

Express
  • Python 3.7+: Make sure you've added Python and pip to your PATH in your environment variables. (1)
  • Python VS Code extension: This will be installed automatically from the marketplace when you install Device Simulator Express.

Adafruit Circuit Playground Express (CPX) Simulator

Features

  • IntelliSense and syntax highlighting for CircuitPython code for the CPX library
  • Template file generation
  • Integrated Python Debugging for the Simulator
  • Serial monitor (available on Windows and Mac only)
  • Output panel for the simulator
  • Deploy CircuitPython code to the physical device.
  • Simulation of the CPX device, including:
    • Green LED
    • Red LED
    • Push Buttons A and B
    • Slider Switch
    • Speaker: Play .wav file
    • 10 NeoPixels
    • Light sensor
    • Motion sensors
    • Acceleration detection
    • Device shake detection
    • Temperature sensor
    • 7 Capacitive Touch sensors

The simulator supports most of the sensors on CPX except IR transmitter & Receiver, Sound Sensor (microphone), Speaker (Play Tone) and the 'tap' on Motion Sensor.The code related to these sensors can still run on the actual CPX board and be deployed using Device Simulator Express.
As we only support CPX library now, other libraries (i.e. simpleio) can’t run on the simulator. But they will work on the actual device!

Useful Links

  • Tutorials and Example Code for Adafruit CPX:
  • Format Adafruit CPX device:

Keyboard Shortcuts

In Device Simulator Express, you can use keyboard to interact with the device:

  • Push Button: A for Button A, B for Button B, C for Buttons A & B
  • Capacitive Touch Sensor: Shift + 1 ~ 7 for GPIO pins A1 - A7
  • Slider Switch: Shift + S
  • Refresh the simulator: Shift + R
  • Run the simulator: Shift + F

BBC micro:bit Simulator

Features

  • IntelliSense and syntax highlighting for MicroPython code for the micro:bit library
  • Template file generation
  • Integrated Python Debugging for the Simulator
  • Deploy MicroPython code to the physical device
  • Serial monitor (available on Windows and Mac only)
  • Simulation of the micro:bit device, including:
    • 25 LEDs
    • Push Buttons A and B
    • Light sensor
    • Motion sensors
    • Acceleration detection including gesture detection
    • Temperature sensor

Useful Links

  • Tutorials and Example Code for BBC micro:bit:

Keyboard Shortcuts

  • Push Button: A for Button A, B for Button B, C for Buttons A & B
  • Refresh the simulator: Shift + R
  • Run the simulator: Shift + F

Adafruit CLUE Simulator

Features

  • IntelliSense and syntax highlighting for CircuitPython code for the following drivers and libraries:
    • adafruit_clue
    • adafruit_slideshow
    • adafruit_display_shapes
    • adafruit_display_text
    • adafruit_bitmap_font
    • adafruit_fancyled
    • neopixel
    • displayio
  • Template file generation
  • Integrated Python Debugging for the Simulator
  • Deploy CircuitPython code to the physical device
  • Serial monitor (available on Windows and Mac only)
  • Simulation of the CLUE device, including:
    • 240x240 color screen
    • Push Buttons A and B
    • Sensors for:
      • Temperature
      • Light
      • Color
      • Acceleration
      • Humidity
      • Pressure
      • Proximity
      • Gestures
      • Gyro
      • Magnetic Field

Useful Links

  • Tutorials and Example Code for Adafruit CLUE:

Visual Studio Express For Mac Os High Sierra

Keyboard Shortcuts

  • Push Button: A for Button A, B for Button B, C for Buttons A & B
  • Refresh the simulator: Shift + R
  • Run the simulator: Shift + F

How to use

To use Device Simulator Express, install the extension from the marketplace and reload VS Code.

To access many of the commands, you need to open the command palette. This can be done with Ctrl + Shift + P for Windows and Linux / Cmd + Shift + P for Mac. It can also be accessed from the toolbar by going to View -> Command Palette.

I. Take a look at the 'Device Simulator Express: Getting Started' Command.

  1. Type in 'Device Simulator Express: Getting Started' in the command palette (Ctrl + Shift + P / Cmd + Shift + P to open the command palette).
  2. Choose the the device you want to play with from the dropdown.
  3. Read, copy and learn some of the things you can do with the simulator!

II. Start with the 'Device Simulator Express: New File' Command.

  1. Type in 'Device Simulator Express: New File' in the command palette (Ctrl + Shift + P / Cmd + Shift + P to open the command palette).
  2. Select the device you want to use.
  3. Name and save your file somewhere, and we’re good to go!
  4. Start with some examples: you can find examples files and tutorials inside the comments at the top of the file.

III. Start from an existing Python file.

  1. Open the folder or your .py file in Visual Studio Code.
  2. Run Device Simulator Express: Open Simulator from the command palette or icon in the editor toolbar.
  3. Select the device you want to use.

IV. Run your code on the simulator.

  1. Run Run Simulator from the command palette or use the Play button on the simulator webview.

V. Deploy your code to the physical device

Before deploying the Python code to your CPX device, you need to format your device by following these tutorials:

  • For the CPX:

    • Download the firmware with the .uf2 file (link: https://learn.adafruit.com/adafruit-circuit-playground-express/circuitpython-quickstart).
    • Download the lastest versions of the cpx libraries (link: https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries).
  • For the micro:bit:

    • Download the firmware with the .hex file (link: https://microbit.org/get-started/user-guide/firmware/).
  • For the CLUE:

    • Download the latest versions of the cpx libraries and follow the instructions here (link:https://learn.adafruit.com/adafruit-clue/circuitpython).
  1. Plug in your device (make sure it’s formatted properly already).
  2. Run the command 'Device Simulator Express: Deploy to Device'.

VI. Use the Serial Monitor for your device (available on Windows and Mac only)

  1. Plug in your device (make sure it’s formatted properly already).
  2. Run the command 'Device Simulator Express: Open Serial Monitor'.
  3. Select your baud rate for the serial port.
  4. The print() statements in your code will show in the output console.

VII. Debug your project on the simulator

  1. Add breakpoints in your code
  2. Press F5 to enter the debugging mode, and you can start debugging line by line!

Commands

Device Simulator Express provides several commands in the Command Palette (F1 or Ctrl + Shift + P / Cmd + Shift + P for Mac OS) for working with *.py files:

  • Device Simulator Express: Getting Started: Opens a page in VS Code that helps users get started with the extension. Here, users can browse through code that they can use to play with the simulators.
  • Device Simulator Express: Run Simulator: Runs Python code on the simulator.
  • Device Simulator Express: New File: Opens an unsaved .py file with template code, also opens the simulator for the selected device.
  • Device Simulator Express: Open Simulator: Opens the simulator in the simulator window for the selected device
  • Device Simulator Express: Deploy to Device: Copies the current file to the selected device.
  • Device Simulator Express: Open Serial Monitor: Opens the serial monitor in the integrated output window.
  • Device Simulator Express: Close Serial Monitor: Stops the serial monitor and releases the serial port.
  • Device Simulator Express: Change Baud Rate: Changes the baud rate of the selected serial port. For Adafruit CPX, the default baud rate is 115200.
  • Device Simulator Express: Select Serial Port: Changes the current serial port.

Contribute

Provide feedback

To add a review for our extension, please do so on the Visual Studio Marketplace

To report issues, provide feedback or requests, please use this link: Provide Feedback.
We would love to hear from you about your experience to keep improving our project.

Visual Studio Express For Mac Os X

Privacy and Telemetry Notice

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Disable Telemetry

Using Visual Studio On Mac

The Microsoft Device Simulator Express Extension for Visual Studio Code collects usagedata and sends it to Microsoft to help improve our products andservices. Read ourprivacy statement tolearn more. This extension respects the telemetry.enableTelemetrysetting which you can learn more about athttps://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.

To disable telemetry, follow these steps:

  1. Open File (Open Code on macOS)
  2. Select Preferences
  3. Select Settings
  4. Search for telemetry
  5. Uncheck the Telemetry: Enable Telemetry setting

Visual Studio Express For Mac Osx

Third Party Notice

A ThirdPartyNotices.txt file is provided in the extension's source code listing the appropriate third-party notices.

Troubleshooting Tips

  • The first time you install the extension, you'll need to execute the run command at least once in order to access auto-completion.
  • While running a code file, if you get an error saying it can't find the file, make sure you've clicked on a valid Python code file before running it.
  • To open the output panel again after closing it go to VS Code menu: View -> Output.
  • If you try to deploy to the CPX while it's plugged in but you still get an error saying it cannot find the board, make sure your device is formatted correctly and that its name matches CIRCUITPY.
  • If you can't get the Simulator communication working while debugging, try to open your Settings and check the port used under 'Device Simulator Express: Debugger Server Port'. You can either change it (usually ports above 5000 should work) or try to free it, then start debugging again.
  • When you are using the serial monitor, if you get some unusual error messages, unplug the device and reload the VS Code windows.
  • If you're using Ubuntu and having some problems with setting up the environment, try reviewing this article's 'Step 1' section on how to set up Python 3 on Ubuntu 16.04. Then, ensure that you've run sudo apt-get install -y python3-venv to allow for virtual environment creation.

License

Notes

  1. Make sure that when you type python in a terminal, the command is recognized and you have the correct version. The easiest way to do it is to select the 'Add to PATH' option directly when you install Python. Otherwise you can search how to insert it manually.
  2. You can choose to see the prompt or not by changing the extension configurations.

Visual Studio Code is not Visual Basic Express, nor does it recreate the underlying Microsoft Windows system features and libraries that Visual Basic Express expects. If the school requires Visual Basic Express, then you need to provide your son with a Windows solution on his Mac. Depending on the school's business relationship with Microsoft, they may offer a less expensive, and even potentially, a free version of Windows 10. Inquire.


Your options for running Windows 10 on the 2015 MacBook Pro with El Capitan, are:

  • Apple's Boot Camp Assistant (included) with El Capitan in /Applications/Utilities.
    • Creates a separate, bootable (not virtualized) partition on the Mac and installs Windows 10 into it
    • One can choose to boot into OS X, or Windows 10.
    • Apple provides specific drivers for Windows 10 for MacBook Pro hardware compatibility.
    • Thoroughly read the above link before plunging into a Boot Camp installation.
  • One of three virtual machines to run Windows 10 concurrently as a guest OS with OS X
    • Free
    • Expects a Windows 10 ISO (.iso) installer
    • Parallel's Desktop
      • Currently $79/year home/student
      • Purchased from Parallels Site
      • Parallel's Lite (free) in Mac App Store requires $60/yr in-App purchase to install Windows
    • VMware Fusion
      • Currently $79
      • Purchased from VMware Fusion site


Your son can run any of these solutions on the 2015 MacBook Pro with El Capitan. If it is an 8GB RAM machine, you may want to caution about running any other applications while using the Virtual Machines, or your son may run out of memory. I currently run Windows 10 w/Fall Creator's update in VirtualBox 5.2.6 on a 2011 Mac mini with 16GB RAM.

Using visual studio on mac


Visual studio express for mac os 10.13

If you go the VirtualMachine route, I would assign 50 GB - 75 GB of storage to the guest container because of the continuous inundation of bloated Microsoft updates, and additional software (development) installations. The Creators updates are close to 7 GB each. You might let Time Machine back this up the VM guest once, and then in Time Machine Preferences, add the VM directory to the exclusions. Each time you change something in the guest container, Time Machine will back it up, and it is a quick way to exhaust a Time Machine drive.

Feb 17, 2018 4:26 AM





Comments are closed.