pico
Build and upload pipeline for Raspberry Pi Pico
Installation
dagger install github.com/jig/dagger-modules/pico@v0.0.1Entrypoint
Return Type
Pico Example
dagger -m github.com/jig/dagger-modules/pico@0dcc07672cad93dde06b5ad85f245ac369e3444e call \
func (m *MyModule) Example() *dagger.Pico {
return dag.
Pico()
}@function
def example() -> dagger.Pico:
return (
dag.pico()
)@func()
example(): Pico {
return dag
.pico()
}Types
Pico 🔗
Pico struct to hold the Dagger container
container() 🔗
Container where the build will be executed
Return Type
Container ! Example
dagger -m github.com/jig/dagger-modules/pico@0dcc07672cad93dde06b5ad85f245ac369e3444e call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Pico().
Container()
}@function
def example() -> dagger.Container:
return (
dag.pico()
.container()
)@func()
example(): Container {
return dag
.pico()
.container()
}setup() 🔗
Setup the tooling to compile for Raspberry Pi Pico
Return Type
Pico !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Source code directory |
Example
dagger -m github.com/jig/dagger-modules/pico@0dcc07672cad93dde06b5ad85f245ac369e3444e call \
setupfunc (m *MyModule) Example() *dagger.Pico {
return dag.
Pico().
Setup()
}@function
def example() -> dagger.Pico:
return (
dag.pico()
.setup()
)@func()
example(): Pico {
return dag
.pico()
.setup()
}cmake() 🔗
CMake builds the Pico project using CMake
Return Type
Pico ! Example
dagger -m github.com/jig/dagger-modules/pico@0dcc07672cad93dde06b5ad85f245ac369e3444e call \
cmakefunc (m *MyModule) Example() *dagger.Pico {
return dag.
Pico().
Cmake()
}@function
def example() -> dagger.Pico:
return (
dag.pico()
.cmake()
)@func()
example(): Pico {
return dag
.pico()
.cmake()
}make() 🔗
Make builds the Pico project using Make
Return Type
Pico ! Example
dagger -m github.com/jig/dagger-modules/pico@0dcc07672cad93dde06b5ad85f245ac369e3444e call \
makefunc (m *MyModule) Example() *dagger.Pico {
return dag.
Pico().
Make()
}@function
def example() -> dagger.Pico:
return (
dag.pico()
.make()
)@func()
example(): Pico {
return dag
.pico()
.make()
}build() 🔗
Build builds the Pico project chaining Setup, CMake and Make
Return Type
Pico !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Source code directory |
Example
dagger -m github.com/jig/dagger-modules/pico@0dcc07672cad93dde06b5ad85f245ac369e3444e call \
buildfunc (m *MyModule) Example() *dagger.Pico {
return dag.
Pico().
Build()
}@function
def example() -> dagger.Pico:
return (
dag.pico()
.build()
)@func()
example(): Pico {
return dag
.pico()
.build()
}version() 🔗
Version displays information about the SDK and tools versions
Return Type
String ! Example
dagger -m github.com/jig/dagger-modules/pico@0dcc07672cad93dde06b5ad85f245ac369e3444e call \
versionfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Pico().
Version(ctx)
}@function
async def example() -> str:
return await (
dag.pico()
.version()
)@func()
async example(): Promise<string> {
return dag
.pico()
.version()
}terminal() 🔗
Returns the directory containing the built files
Return Type
Container ! Example
dagger -m github.com/jig/dagger-modules/pico@0dcc07672cad93dde06b5ad85f245ac369e3444e call \
terminalfunc (m *MyModule) Example() *dagger.Container {
return dag.
Pico().
Terminal()
}@function
def example() -> dagger.Container:
return (
dag.pico()
.terminal()
)@func()
example(): Container {
return dag
.pico()
.terminal()
}