Skip to content

Commit 8dcc72b

Browse files
T21 working on LuxOS (#331)
1 parent 5405723 commit 8dcc72b

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

docs/miners/antminer/X21.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188
- [x] Shutdowns
189189
- [ ] Power Modes
190-
- [ ] Setpoints
190+
- [x] Setpoints
191191
- [x] Presets
192192

193193
::: pyasic.miners.antminer.luxos.X21.S21.LUXMinerS21
@@ -196,6 +196,19 @@
196196
show_root_heading: false
197197
heading_level: 0
198198

199+
## T21 (LuxOS)
200+
201+
- [x] Shutdowns
202+
- [ ] Power Modes
203+
- [x] Setpoints
204+
- [x] Presets
205+
206+
::: pyasic.miners.antminer.luxos.X21.T21.LUXMinerT21
207+
handler: python
208+
options:
209+
show_root_heading: false
210+
heading_level: 0
211+
199212
## S21 (MaraFW)
200213

201214
- [ ] Shutdowns
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ------------------------------------------------------------------------------
2+
# Copyright 2022 Upstream Data Inc -
3+
# -
4+
# Licensed under the Apache License, Version 2.0 (the "License"); -
5+
# you may not use this file except in compliance with the License. -
6+
# You may obtain a copy of the License at -
7+
# -
8+
# http://www.apache.org/licenses/LICENSE-2.0 -
9+
# -
10+
# Unless required by applicable law or agreed to in writing, software -
11+
# distributed under the License is distributed on an "AS IS" BASIS, -
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
13+
# See the License for the specific language governing permissions and -
14+
# limitations under the License. -
15+
# ------------------------------------------------------------------------------
16+
17+
from pyasic.miners.backends import LUXMiner
18+
from pyasic.miners.device.models import S21, T21
19+
20+
21+
class LUXMinerT21(LUXMiner, T21):
22+
pass

pyasic/miners/antminer/luxos/X21/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
# ------------------------------------------------------------------------------
1616

1717
from .S21 import LUXMinerS21
18+
from .T21 import LUXMinerT21

pyasic/miners/factory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ class MinerTypes(enum.Enum):
623623
"ANTMINER S19 XP": LUXMinerS19XP,
624624
"ANTMINER T19": LUXMinerT19,
625625
"ANTMINER S21": LUXMinerS21,
626+
"ANTMINER T21": LUXMinerT21,
626627
},
627628
MinerTypes.AURADINE: {
628629
None: type("AuradineUnknown", (Auradine, AuradineMake), {}),

0 commit comments

Comments
 (0)