Skip to content

Instantly share code, notes, and snippets.

View jacobrosenthal's full-sized avatar

Jacob Rosenthal jacobrosenthal

View GitHub Profile
jacob@j:~/Downloads/atsamd/boards/pygamer (tfmicro)$ cargo flash --example blinky_basic --release --chip ATSAMD51J19A --log trace
Finished release [optimized + debuginfo] target(s) in 0.11s
DEBUG cargo_project > Project::query(path=/home/jacob/Downloads/atsamd/boards/pygamer): root=/home/jacob/Downloads/atsamd/boards/pygamer
DEBUG cargo_project > workspace search: cwd=/home/jacob/Downloads/atsamd/boards
Flashing /home/jacob/Downloads/atsamd/boards/pygamer/target/thumbv7em-none-eabihf/release/examples/blinky_basic
DEBUG jaylink > libusb 1.0.23.11397
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: true
DEBUG jaylink > libusb has hotplug support: true
DEBUG jaylink > libusb can detach kernel driver: true
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "arrivalId",
"type": "uint256"
}
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin, plus other helpful things.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
class ArtifactsFinder {
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin, plus other helpful things.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
class ArtifactsFinder {
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin, plus other helpful things.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
class Plugin {
class Plugin {
/**
* A constructor can be used to keep track of information.
*/
constructor() {
captureArtifacts(ui.getSelectedPlanet().locationId, 80);
}
}
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin, plus other helpful things.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
class Plugin {
class Plugin {
/**
* A constructor can be used to keep track of information.
*/
constructor() {
captureArtifacts(ui.getSelectedPlanet().locationId, 80);
}
}
class Plugin {
/**
* A constructor can be used to keep track of information.
*/
constructor() {
const planets = df.getMyPlanets();
for (const planet of planets) {
captureArtifacts(planet.locationId, 80);
}