Skip to content

Instantly share code, notes, and snippets.

/**********
* SmartThings Arduino Shield On/Off
* For use on Arduino Mega
* author: github.com/tprynn
* Attach Shield normally with switch on 2/3.
* Jumper pins:
* - 18 (Tx1) to Shield 3 (Rx)
* - 19 (Rx1) to Shield 2 (Tx)
**********/
/**********
* SmartThings Arduino Shield Passthrough
* For use on Arduino Mega
* author: github.com/tprynn
* Attach Shield normally with switch on 2/3.
* Jumper pins:
* - 18 (Tx1) to Shield 3 (Rx)
* - 19 (Rx1) to Shield 2 (Tx)
**********/
/* ISTA 303 Assignment 1
* Tanner Prynn
* communities.pde
* Implements a signal-passing automata based on a random graph.
* Some notes:
* - Nodes are connected according to their relative distances.
* - Communication between nodes in the same community is shown in green,
* communication between different communities is shown in red.
* - Nodes are more likely to communicate within their own communities.
* - Messages spread outward from their origination point.