# Cannot convert 'const bool' Arduino R4

**URL:** https://forum.xod.io/t/cannot-convert-const-bool-arduino-r4/6771
**Category:** Install/Upload Problems
**Created:** [January 26, 2024, 3:12am UTC](https://forum.xod.io/t/cannot-convert-const-bool-arduino-r4/6771 "2024-01-26T03:12:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)
#### Post date: [January 26, 2024, 3:49am UTC](https://forum.xod.io/t/cannot-convert-const-bool-arduino-r4/6771/2 "2024-01-26T03:49:47Z")

</div>

In general, it is helpful to post the part of your code that is generating the issue. If you can create a new patch with only the nodes required to generate the same error, that would help you debug the issue as well as help others see where the problem might be.

That being said, it looks like your problem is with the digital-write node itself, which includes this code:

```auto
const bool val = getValue<input_SIG>(ctx);
::digitalWrite(constant_input_PORT, val);

```

It seems very odd that this commonly used node that hasn’t been changed in a long time would suddenly be a problem just for you… There is some chance that you have over-ridden the default code. See one of many previous posts on this topic: [I broke XOD with help from my son](https://forum.xod.io/t/i-broke-xod-with-help-from-my-son/710)

---

_[View the full topic](https://forum.xod.io/t/cannot-convert-const-bool-arduino-r4/6771)._
