Changes between Version 3 and Version 4 of SoftwareOverviewIntermediate
- Timestamp:
- Oct 2, 2017, 11:08:15 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SoftwareOverviewIntermediate
v3 v4 7 7 Lets start out simple. 8 8 9 == Introducing the Zebra Zero Environment==9 == Introducing the Zebra Zero Environment == 10 10 For this level of exercise, we're going to be using a training platform called the Zebra Zero. It consists of a Raspberry Pi Zero W microcomputer, and a breadboard. 11 11 12 === What is a Raspberry Pi Zero W?===12 === What is a Raspberry Pi Zero W? === 13 13 A Raspberry Pi Zero W is a tiny $10 computer. It has usb ports, a video connector, wifi, and a GPIO (General Purpose Input/Output) connector to interface to the outside world. The pins on this GPIO connector perform a variety of functions such as power, ground, input, and output. The pins can programed to behave in different ways. We'll be connecting to the Pi and running Java programs on it which control the GPIO connector and the world outside of the Pi. 14 14 15 === What is a Breadboard?===15 === What is a Breadboard? === 16 16 A breadboard is an tool to quickly build circuits. It looks like this: 17 17 … … 25 25 Recall that we said in a prior activity that Python is a programming language. Its a language with syntax (nouns, verbs, etc). Java is the same. This is a java program: 26 26 27 {{{ 27 28 public class HelloWorld{ 28 29 pubic static void main(String[] args) { … … 30 31 } 31 32 } 33 }}} 32 34 33 35 If we tell the computer to run this code, it will print, you guessed it, 'Hello World'. The {} curly brackets are used to create blocks of code, the same thing was done in Python with indenting. HelloWorld is a class aka a container, and when you run it java knows to automatically run whatever is in the main, which is to print something. You try it [[https://www.tutorialspoint.com/compile_java8_online.php here] (Hint: Click execute to run the program)