# Flow My LED Tears

**URL:** <https://forum.electromage.com/t/flow-my-led-tears/1531>\
**Category:** Show and Tell\
**Created:** [August 31, 2021, 6:29am UTC](https://forum.electromage.com/t/flow-my-led-tears/1531 "2021-08-31T06:29:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pixie](https://forum.electromage.com/letter_avatar_proxy/v4/letter/p/7bcc69/32.png) [@pixie](https://forum.electromage.com/u/pixie)\
**Post date:** [August 31, 2021, 9:03pm UTC](https://forum.electromage.com/t/flow-my-led-tears/1531/3 "2021-08-31T21:03:40Z")

</div>

@zranger1 came up with a detection method [here](https://forum.electromage.com/t/pixelblaze-w-hc-sr04-distance-sensor/1288):

> [@Pixelblaze w/HC-SR04 Distance Sensor](https://forum.electromage.com/t/pixelblaze-w-hc-sr04-distance-sensor/1288/1):
>
> ```auto
> // Attempt to detect the Pixelblaze variant the pattern is
> // currently running on, based on differences in capacitance 
> // returned by touchRead on the "orange LED" GPIO Pin (GPIO12)
> //
> // Returns: 0 - Pixelblaze 2, 1 - Pixelblaze 3, 2 - Pixelblaze Nano
> function getHardwareType() {
> var hw = 0; // default to pb2
>   
> var e = touchRead(12);
> if (e == 0) { hw = 2; }
> else if (e >= 0.99) hw = 1;
>   
> return hw;
> }  
> 
> ```

---

_[View the full topic](https://forum.electromage.com/t/flow-my-led-tears/1531)._
