Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5f70933 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
deinhofer committed Mar 25, 2024
1 parent 6d35866 commit 2ef6eea
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
11 changes: 9 additions & 2 deletions _dist_/components/Device.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {fetchDevice, useAsync} from "../irdb.js";
import {EncodeIR} from "../wasm/EncodeIR.js";
const Puck = window.Puck;
Puck.debug = 3;
let puckIRStr = "Puck.IR();";
export const Device = ({path}) => {
const fns = useAsync(() => fetchDevice(path), [path]);
const [fn, setFn] = useState();
Expand All @@ -11,7 +12,10 @@ export const Device = ({path}) => {
if (send)
await emit(fn2);
};
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
return /* @__PURE__ */ React.createElement(React.Fragment, null, "//Output of Puck.IR command", /* @__PURE__ */ React.createElement("div", {
className: "m-2 mt-8 flex justify-between gap-4 flex-col md:flex-row",
dangerouslySetInnerHTML: {__html: `${puckIRStr}`}
}), /* @__PURE__ */ React.createElement("div", {
className: "m-2 mt-8 flex justify-between gap-4 flex-col md:flex-row"
}, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(FnVis, {
fn
Expand Down Expand Up @@ -82,10 +86,13 @@ const emit = async (fn) => {
} else {
last = fn;
const millis = await decode(fn);
let irStr = `[${millis.map((n) => n.toFixed(2)).join(",")}]`;
puckIRStr = `Puck.IR(${irStr});\\n`;
console.log(puckIRStr);
await Puck.write(`
LED3.set();
function repeat() {
Puck.IR([${millis.map((n) => n.toFixed(2)).join(",")}])
Puck.IR(${irStr});
};
repeat();
LED3.reset();
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div id="root"></div>

<script src="https://www.puck-js.com/puck.js"></script>
<script src="/puckmote/js/webpack-runtime.52cb85f317a0c615e8c0.js"></script><script src="/puckmote/js/lib-react-dom.a16292bf94789297393e.js"></script><script src="/puckmote/js/index.16fe9f956a6ef5cbabcc.js"></script>
<script src="/puckmote/js/webpack-runtime.52cb85f317a0c615e8c0.js"></script><script src="/puckmote/js/lib-react-dom.a16292bf94789297393e.js"></script><script src="/puckmote/js/index.35b5c1265d08a7191075.js"></script>

<script>
if ("serviceWorker" in navigator) {
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ef6eea

Please sign in to comment.