Skip to content

JOTSR/pita-api

Repository files navigation

logo

Pita api

Simpliest way to develop secure and powerful webapps for redpitaya.

deno module GitHub GitHub Workflow Status deno doc

Simpliest way to develop secure and powerful app for redpitaya.

Pita 🫓 api provide frontend proxy to Redpitaya low level API. Pita api allows you to manage your Redpitaya board without worring about backend, and with Pita cli, build and implement your webapp with a robust and secure environement. It handle all your workflow, from tooling installation to testing, benching and publishing.

Pita project resides in:

pita cli pita api pita template
GitHub tag (latest by date) GitHub tag (latest by date) GitHub tag (latest by date)
deno doc

Getting started

Example app taken from pita template.

import config from '@pita/project.json' assert { type: 'json' }
import { Project } from 'https://deno.land/x/pita_api/mod.ts'

const redpitaya = await Project.init(config)

await redpitaya.channel.dac1.writeSlice([0, 0, 0, 256, 256, 256, 0, 0, 0])
console.log('Gate signal on DAC 1')
await redpitaya.pin.digital.led1.write(true)
console.log('Led 1 is ON')

Contributing

Read CONTRIBUTING and start a codespace or clone this repository.

Folow conventionnal commit, document your code and, use deno or rust style coventions on the corresponding directories.

Link your PR with the corresponding issue if it exists.

About

API for Pita projects, simpliest way to develop secure and powerful webapps for redpitaya.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published