summaryrefslogtreecommitdiffhomepage
path: root/src/srp/fw-ec/index.html
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-07-30 04:15:05 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-07-30 04:15:05 +0200
commit5b4d4b3400acdace76f5970849fcb7f9cefd2c4d (patch)
treeaba62cb24bee0f6e81434602571791b1945a78fb /src/srp/fw-ec/index.html
Genesis commit
Not ready for release yet, but I need some commits for M4 to work properly.
Diffstat (limited to 'src/srp/fw-ec/index.html')
-rw-r--r--src/srp/fw-ec/index.html98
1 files changed, 98 insertions, 0 deletions
diff --git a/src/srp/fw-ec/index.html b/src/srp/fw-ec/index.html
new file mode 100644
index 0000000..c04da7f
--- /dev/null
+++ b/src/srp/fw-ec/index.html
@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ m4_include(head.html)
+ </head>
+ <body>
+ <header>
+ <div>
+ <h1>Framework is Awesome</h1>
+ m4_include(nav.html)
+ </div>
+
+ <figure class="quote">
+ <blockquote>
+ <p>UNIX was not designed to stop its users from doing stupid
+ things, as that would also stop them from doing clever
+ things.</p>
+ </blockquote>
+ <figcaption>
+ Doug Gywn
+ </figcaption>
+ </figure>
+ </header>
+
+ <main>
+ <h2>Framework and the <abbr class="ec">EC</abbr></h2>
+
+ <p>
+ <a href="https://frame.work" target="_blank">
+ Framework
+ </a>
+ — for those unaware — is the coolest laptop manufacturer ever.
+ Their whole <em>shtick</em> is producing laptops that give the
+ user the ability to easily and effortlessly disassemble, repair,
+ and modify their hardware. I highly suggest checking them out if
+ you’re interested in computer hardware at all. The laptops even
+ have hotswappable I/O!
+ </p>
+
+ <p>
+ Anyways getting back on topic, Framework has also been giving
+ power to the user on the software-side of things too! A good
+ while ago they open-sourced the
+ <a href="https://github.com/FrameworkComputer/EmbeddedController">
+ code for the embedded controller
+ </a>
+ of their laptops, which offers all sorts of possibilities for
+ customization of the keyboard,
+ <abbr class="led">LED</abbr>
+ lights, and more.
+ </p>
+
+ <h2><abbr class="led">LED</abbr> Fun!</h2>
+
+ <p>
+ This is an area of the
+ <abbr class="ec">EC</abbr>
+ which I have not really looked at or touched much. I do want to
+ play around with this a lot more in the coming future though! So
+ far just for shits-and-giggles, I’ve patched the
+ <abbr class="ec">EC</abbr>
+ to make the power-button
+ <abbr class="ec">LED</abbr>
+ green instead of the normal boring white:
+ </p>
+
+ <aside>
+ <p>
+ Just a tip: if you want to try any of these patches out,
+ simply copy the diffs and paste them
+ into <code>git&nbsp;apply</code>.
+ </p>
+ </aside>
+
+ <figure>
+ <figcaption>
+ <code>~/board/hx20/led.c</code>
+ </figcaption>
+ <pre>m4_include(led.diff.html)</pre>
+ </figure>
+
+ <p>
+ As you can see, it’s all fairly simple. I just had to change our
+ <code>EC_LED_COLOR_WHITE</code> for
+ <code>EC_LED_COLOR_GREEN</code>. The codebase defines a few
+ colors, but they’re defined as <abbr class="rgb">RGB</abbr>
+ tuples which is awesome, because it opens the door to
+ custom <abbr class="rgb">RGB</abbr> effects in the future!
+ </p>
+ </main>
+
+ <hr>
+
+ <footer>
+ m4_include(footer.html)
+ </footer>
+ </body>
+</html>