MCPcopy Create free account
hub / github.com/djhworld/simple-computer / NewScreenControl

Function NewScreenControl

io/display.go:167–174  ·  view source on GitHub ↗
(adapter *DisplayAdapter, outputChan chan *[160][240]byte, quit chan bool)

Source from the content-addressed store, hash-verified

165}
166
167func NewScreenControl(adapter *DisplayAdapter, outputChan chan *[160][240]byte, quit chan bool) *ScreenControl {
168 s := new(ScreenControl)
169 s.adapter = adapter
170 s.clock = time.Tick(33 * time.Millisecond)
171 s.quit = quit
172 s.outputChan = outputChan
173 return s
174}
175
176func (s *ScreenControl) Run() {
177 for {

Callers 1

NewComputerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected