jscad-raspberrypi
This is a collection of jscad parts that model a RaspberryPi BPlus and various Hats. These models use the jscad-utils library and return jscad-utils group
objects.
Installation
Install jscad-raspberrypi
using NPM:
npm install --save jscad-raspberrypi
Basic usage
To use the utilities, you need to include the jscad-raspberrypi.jscad
file and a copy of lodash
.
;;; { util; var BPlus = RaspberryPi; return BPlus;}
Yeoman Generator
You can use the yeoman jscad generator which will create a project that uses this library.
Once you create your project, install jscad-raspberrypi
, and run gulp
. Dragging the dist
directory into http://openjscad.org/ will include this library.
Modify your main.jscad
file to return a RaspberryPi object.
// include:js// endinject/* exported main, getParameterDefinitions *//* globals piexample */ { util; return RaspberryPi;}
Reference
RaspberryPi
RaspberryPi.BPlus()
Returns a complete RaspberryPi B Plus model.
Kind: static method of RaspberryPi
RaspberryPi.Hat()
Returns an empty Pi Hat.
Kind: static method of RaspberryPi
RaspberryPi.PiTFT24()
Returns an Adafruit PiTFT 2.4 Hat with buttons.
Kind: static method of RaspberryPi
RaspberryPi.CameraModule()
Returns an Pi camera module.
Kind: static method of RaspberryPi
© 2016 John Cole johnwebbcole@gmail.com. Documented by jsdoc-to-markdown.