Skip to content

Commit

Permalink
Merge pull request #33 from ElvinPero/ICelv
Browse files Browse the repository at this point in the history
TbButton class with LED Switches.
  • Loading branch information
Ducasse authored Sep 16, 2024
2 parents 41e5b76 + 2eb6981 commit 0fde8d5
Show file tree
Hide file tree
Showing 5 changed files with 441 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CoypuIDE/ICAudioDisplay.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ Class {
'widgetSize',
'dataPoints'
],
#category : 'CoypuIDE',
#package : 'CoypuIDE'
#category : 'CoypuIDE-oscilloscope',
#package : 'CoypuIDE',
#tag : 'oscilloscope'
}

{ #category : 'example' }
Expand Down
8 changes: 5 additions & 3 deletions CoypuIDE/ICButton.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ ICButton >> initialize [
self initializeEvents
]

{ #category : 'evaluating' }
{ #category : 'as yet unclassified' }
ICButton >> initializeButton [

self button: (BlElement new
Expand All @@ -143,12 +143,14 @@ ICButton >> initializeEvents [
on: BlMouseDownEvent
do: [ :anEvent |
self toggle.
self callback value: 1]);
self callback value: 1
]);
addEventHandler: (BlEventHandler
on: BlMouseUpEvent
do: [ :anEvent |
self toggle.
self callback value: 0 ])
self callback value: 0
])
]

{ #category : 'evaluating' }
Expand Down
Loading

0 comments on commit 0fde8d5

Please sign in to comment.