Questions tagged [bread-board]

Bread::Board is a dependency-injection library for Perl.

12 questions
3
votes
1 answer

Bread::Board - Injecting parameters with ArrayRef type constraints?

Using Moose and Bread::Board, is it possible to create an object with an attribute that has an ArrayRef[SomeObject] type constraint and have that parameter injected in such a way that: The ArrayRef constraint is maintained, Each object that is a…
3
votes
1 answer

Modifiers not visible under objects from services

Given the following: Moo 2.001001; Bread::Board 0.34; a Bread::Board container base class Foo with property str and around modifier for str subclass Bar extending Foo The issue: [GOOD] when instantiating object from plain Bar, Foo::str modifier…
Vlad Ghita
  • 59
  • 7
1
vote
1 answer

Bread::Board service B depends on accessor on service A object

Using Bread::Board I have an object/service A with with accessor $A->foo. Object/service B depends on $A->Foo for it's contstructor. How would I do this? Here's an example of what I have use Moose; use Bread::Board; has info => ( is => 'ro', lazy…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
1
vote
1 answer

Initialize and Check button press ARM ASSEMBLY TIVA

I have a TM4C123G board. I've set up a basic ARM assembly program in which the bits will shift either left (PC4, PC5, PC6) or right (down the opposite), lighting up differen LED's. I now would like to add a button to decide which of these patterns…
euniquity
  • 11
  • 2
1
vote
0 answers

Why is my 7 segment display using CD4511 IC not working. Circuit Design attached

I want to count 0 to 9 by converting decimal to BCD in Arduino. Then sent it to CD4511 decoder which translates it to a seven-segment display. But it is not working. Please help. Photo of circuit and arduino code is attached.circuit design is as…
Uday Uppal
  • 11
  • 1
0
votes
1 answer

default/replacable values in Bread::Board

I found myself instantiating the same objects in numerous tests, so I'm trying to replace this constant setup by using Bread::Board. Most of the time I will want the dependencies to have the same configuration. But occasionally I may want to have an…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
0
votes
0 answers

Is it possible connect 4 HC-SR04(for every direction) in a 170 Points Mini Breadboard (SYB-170)?

I need to connect four HC-SR04 (Ultrasonic distance sensor) in a 170 Points Mini Breadboard SYB-170. Each sensor for each direction(North,South,East,West) I am attaching the image of both components, sensor as well as the breadboard.Also I am using…
0
votes
0 answers

i want to know how to add a second function to the second button connected to my gpio circuit

so i have written this code in my nano editor. the first button which is gpio(21) is functioning properly. the first button (21) is turning the LED's on and off. as for the second button i would like it to change the speed of the LED's flashing once…
0
votes
0 answers

Why is my raspberry pi saying that the button is pressed

I’m trying to create something with my bread and pi but the button is saying that it is pressed and when ever it does say that it is off the LED light blinks off then back on. I’ve tried new buttons and I feel this is a software issue This is my…
0
votes
0 answers

Cant Get Out of For loop, it ignores break. have tried to change it but seem to just break my LED output

def shiftOut(dPin,cPin,order,val): for i in range(0,8): GPIO.output(cPin,GPIO.LOW); if(order == LSBFIRST): GPIO.output(dPin,(0x01&(val>>i)==0x01) and GPIO.HIGH or GPIO.LOW) elif(order == MSBFIRST): …
0
votes
2 answers

Wordpress Breadcrumbs

As we only have one category for all posts, it doesn't make sense to have the category link in our breadcrumbs. So instead of: frontpage/category_name/post_name We would like: frontpage/post_archive (home)/post_name Can't find any article on how to…
Virik
  • 397
  • 1
  • 4
  • 18
0
votes
2 answers

How to setup an Arduino virtual breadboard. Is Arduino Toolkit needed?

I installed Virtual Breadboard 4.29.0. When I run the basic blink tutorial example it says that there is an error because I need the Arduino toolkit. So I downloaded the Arduino 1.0.4 tools, but it's not really clear on if this is what I need or if…
DotNetRussell
  • 9,716
  • 10
  • 56
  • 111