---
title: "Comment by R on \"Embedded Rust BSP with µFerris & XIAO: Getting started with µferris-bsp\" | Hashnode"
description: "Thanks Omar for fixing the bsp crate it works well now. I have a question on the the 7 segment display. When i run the code for the Light Intensity Reading Exam"
url: "https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c/comment/6acd5bc26a7ba8a34bbce574"
---

[Discussion](https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c)

Comment [Embedded Rust BSP with µFerris & XIAO: Getting started with µferris-bsp](https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c)

[R](https://hashnode.com/@rfjl12345)

[Oct 12](https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c/comment/6acd5bc26a7ba8a34bbce574)

Thanks Omar for fixing the bsp crate it works well now. I have a question on the the 7 segment display. When i run the code for the Light Intensity Reading Example all works well. The 7 segment displays the values correctly, but some of the other segments seem to be half on making it hard to read the correct value. Is this normal ?

[Omar Hiari](https://hashnode.com/@omarhiari)

[Oct 12](https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c/comment/6acd5bc26a7ba8a34bbce574#reply-6acd5f5ee837d1b9cce894cd)

You seem to be describing a ghosting effect. In order to avoid that you need to introduce blanking. For the current lit digit you need to blank it first by passing a `None`, after ward pass a new value.

[R](https://hashnode.com/@rfjl12345)

[Oct 13](https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c/comment/6acd5bc26a7ba8a34bbce574#reply-6acd8c33fd635a2caddb2f72)

HI Omar, i added the code before the for in\_0..250, after the for loop and i even tried to put it in the loop. I still see the other leds on, but a little dimmer than the other ones. Here is the attempt at the code in the for loop. for \_ in 0..250 { uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit1, None).unwrap(); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit1, Some(digits\[0\])).unwrap(); delay.delay\_ms(1); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit2, None).unwrap(); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit2, Some(digits\[1\])).unwrap(); delay.delay\_ms(1); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit3, None).unwrap(); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit3, Some(digits\[2\])).unwrap(); delay.delay\_ms(1); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit4, None).unwrap(); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit4, Some(digits\[3\])).unwrap(); delay.delay\_ms(1); } I can send you a picture if that helps, Regards,

[R](https://hashnode.com/@rfjl12345)

[Oct 13](https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c/comment/6acd5bc26a7ba8a34bbce574#reply-6acd8f68ce662a118ed71d7e)

Interesting when i commented out all the write\_seven\_segments with the some digits except one, in this case the second digit, the second digit worked fine, but also the 3rd digit lit up with the same digit but slightly dimmer. It followed the same pattern of always lighting up the digit after the one chose with a dimmer version. for \_ in 0..250 { uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit1, None).unwrap(); //uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit1, Some(digits\[0\])).unwrap(); delay.delay\_ms(1); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit2, None).unwrap(); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit2, Some(digits\[1\])).unwrap(); delay.delay\_ms(1); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit3, None).unwrap(); // uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit3, Some(digits\[2\])).unwrap(); delay.delay\_ms(1); uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit4, None).unwrap(); // uferris.write\_seven\_segment\_digit(SevenSegDigit::Digit4, Some(digits\[3\])).unwrap(); delay.delay\_ms(1); } Regards, R

[Omar Hiari](https://hashnode.com/@omarhiari)

[Oct 13](https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c/comment/6acd5bc26a7ba8a34bbce574#reply-6ace222090a337e7cf89551b)

Hello, it seems your sequence is off. You are blanking and then activating. It should be more like:

```
Some(value) // Activate value on seven segment
Delay // Keep it on for some time
None // Blank
```

[R](https://hashnode.com/@rfjl12345)

[Oct 13](https://hashnode.com/posts/embedded-rust-bsp-with-ferris-xiao-getting-started-with-ferris-bsp/6a840a0cf6789182d19f314c/comment/6acd5bc26a7ba8a34bbce574#reply-6ace33ba94ddbcacaa3d781e)

Thank you , that worked
