Socket
Socket
Sign inDemoInstall

jscad-raspberrypi

Package Overview
Dependencies
3
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jscad-raspberrypi

jscad parts library for RaspberryPi


Version published
Maintainers
1
Created

Readme

Source

view on npm npm module downloads

jscad-raspberrypi

bplus example

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.

include('node_modules/jscad-utils/jscad-utils.jscad');
include('node_modules/jscad-raspberrypi/jscad-raspberrypi.jscad');
include('node_modules/lodash/lodash.js');

main() {
  util.init(CSG);

  var BPlus = RaspberryPi.BPlus();

  return BPlus.combine();
}

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 */


function main(params) {

    util.init(CSG);

    return RaspberryPi.BPlus().combine();
}

Reference

RaspberryPi

RaspberryPi.BPlus()

Returns a complete RaspberryPi B Plus model. bplus example

Kind: static method of RaspberryPi

RaspberryPi.Hat()

Returns an empty Pi Hat. hat example

Kind: static method of RaspberryPi

RaspberryPi.PiTFT24()

Returns an Adafruit PiTFT 2.4 Hat with buttons. PiTFT 2.4 example

Kind: static method of RaspberryPi

RaspberryPi.CameraModule()

Returns an Pi camera module. camera example

Kind: static method of RaspberryPi

© 2016 John Cole johnwebbcole@gmail.com. Documented by jsdoc-to-markdown.

Keywords

FAQs

Last updated on 24 Oct 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc