Git Product home page Git Product logo

arduino-vga's Introduction

arduino-vga

Generating VGA video with an Arduino Uno / Atmega16u2 Microcontroller.

To Connect (atmega16u2):

  • Connect all grounds on the VGA connector together.
  • Connect VGA ground to the Arduino Gnd.
  • Place a 120ohm resistor from the MOSI2 pin (Pin 4 on ICSP) to PB7 (Pin 4 on JP2)
  • Connect the VGA red, blue and green inputs together and connect to PB7.
  • Connect VGA vsync to PB5 (Pin 3 on JP2).
  • Connect VGA hsync to PB4 (Pin 1 on JP2).

To Assemble:

  • avr-as -mmcu=atmega16u2 -o ghettovga.o ghettovga.s
  • avr-ld -m avr35 -o ghettovga.bin ghettovga.o
  • avr-objcopy -j .text -j .data -O ihex ghettovga.bin vghettovga.hex

To Upload:

  • Temporarily short pins 5 and 6 on the atmega16u2 ICSP header.
  • dfu-programmer atmega16u2 erase
  • dfu-programmer atmega16u2 flash "./ghettovga.hex"
  • dfu-programmer atmega16u2 reset

To Restore Arduino Bootloader

  • Temporarily short pins 5 and 6 on the atmega16u2 ICSP header.
  • Retrieve the appropriate usb-serial hex from: http://bit.ly/1E3pMbU
  • Use dfu-programmer to flash hex to atmega16u2

Font glyphs copyright (c) 1981 Michael C. Koss http://mckoss.com/jscript/tinyalice.htm

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.